Jump to content

createWater


Recommended Posts

السلام عليكم

x1, y1, z1 = 3059, 1063, 57
x2, y2, z2 = 3016, 1063, 57
x3, y3, z3 = 3016, 1092, 57
x4, y4, z4 = 3059, 1092, 57

function thaResourceStarting( )
    water = createWater ( x1,y1,z1,x2,y2,z2,x3,y3,z3,x4,y4,z4 )
	createBlipAttachedTo ( water, 52 )
    setWaterLevel ( water, 1000 )
	if water then
	print("ssssssssssssssssssssssssssss")
	else
	print("s")
	end
end
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), thaResourceStarting)

ابي اسوي موية ومو راضيه تزبط معي معني لما احط عليها علامة يطلع لي بالخريطة انها بالمكان الي انا سويتها فيه وش الحل؟

Link to comment

جرب هاذا

x1 = 3059
y1 = 1063
z1 = 57
x2 = 3063
y2 = 1063
z2 = 57
x3 = 3063
y3 = 1092
y3 = 57
x4 = 3059
y4 = 1092
z4 = 57

function thaResourceStarting( )
    water = createWater ( x1,y1,z1,x2,y2,z2,x3,y3,z3,x4,y4,z4 )
	createBlipAttachedTo ( water, 52 )
    setWaterLevel ( water, 100 )
	if water then
	print("ssssssssssssssssssssssssssss")
	else
	print("s")
	end
end
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), thaResourceStarting)

Not tested

Link to comment
2 hours ago, Mohamed Nightmare said:

جرب هاذا


x1 = 3059
y1 = 1063
z1 = 57
x2 = 3063
y2 = 1063
z2 = 57
x3 = 3063
y3 = 1092
y3 = 57
x4 = 3059
y4 = 1092
z4 = 57

function thaResourceStarting( )
    water = createWater ( x1,y1,z1,x2,y2,z2,x3,y3,z3,x4,y4,z4 )
	createBlipAttachedTo ( water, 52 )
    setWaterLevel ( water, 100 )
	if water then
	print("ssssssssssssssssssssssssssss")
	else
	print("s")
	end
end
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), thaResourceStarting)

Not tested

يب ايش الفرق الحين ؟ 

انت حطيت كل احداثيات كل واحد بمتغير

وش  الفرق ؟

  • Like 1
Link to comment
x1, y1 = 3059, 1063
x2, y2  = 3016, 1063
x3, y3  = 3016, 1092
x4, y4  = 3059, 1092
height = 40  -- ارتفاع المياه



function thaResourceStarting( )
    water = createWater ( x1,y1,height,x2,y2,height,x3,y3,height,x4,y4,height  )
	createBlipAttachedTo ( water, 52 )
    setWaterLevel ( height  )
	if water then
	print("ssssssssssssssssssssssssssss")
	else
	print("s")
	end
end
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), thaResourceStarting)

جرب هذا .

Edited by ivor
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...