Jump to content

x[Help]x createWater


#RoLde

Recommended Posts

hello,

I have a problem with the createWater function when I make water in a high place when I cross from under this screen the screen becomes black How can I solve this problem?

Code

-- Setting water properties.
height = -193
SizeVal = 50
-- Defining variables.
southWest_X = -SizeVal
southWest_Y = -SizeVal
southEast_X = SizeVal
southEast_Y = -SizeVal
northWest_X = -SizeVal
northWest_Y = SizeVal
northEast_X = SizeVal
northEast_Y = SizeVal

-- OnClientResourceStart function that creates the water.
function thaResourceStarting( )
    water = createWater ( southWest_X, southWest_Y, height, southEast_X, southEast_Y, height, northWest_X, northWest_Y, height, northEast_X, northEast_Y, height )
    setWaterLevel ( water,height )
	setElementPosition(water,1085.96741, 1640.78955, 194.28751)
	setWaterVertexPosition (water, 94.8, 1085.96741, 1640.78955, 194.28751)
	createBlipAttachedTo(water,14)
end
addEventHandler("onClientResourceStart", resourceRoot, thaResourceStarting)

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...