- 
                Posts862
- 
                Joined
- 
                Last visited
Everything posted by iMr.3a[Z]eF
- 
	I don't see it in the elements page "Element"
- 
	And is guidxCreateWindow an element?
- 
	source is not defined . Thanks for warn, but are the rest right? local x,y,z = getElementPosition( thePlayer ) addCommandHandler( "info", function (thePlayer, commandName, id) if getElementType(thePlayer) == "player" then if (tonumber(id)) then createObject(id, y, x, z - 1) end end end )
- 
	wtf try this local x,y,z = getElementPosition( source ) addCommandHandler( "info", function (thePlayer, commandName, id) if (tonumber(id)) then createObject(id, y, x, z - 1) end end )
- 
	eBarrier = createObject ( 968, 1544.6999511719, -1630.5999755859, 13.10000038147, 0, 90, 90 ) gatecol = createColCircle ( 1544.5999755859, -1627.1999511719, 12.39999961853, 4 ) bar1 = createObject ( 994, 1544.6999511719, -1623.9000244141, 12.39999961853, 0, 0, 90 ) bar2 = createObject ( 994, 1544.6999511719, -1623.9000244141, 13.39999961853, 0, 0, 90 ) bar3 = createObject ( 994, 1544.9000244141, -1639.0000000000, 12.39999961853, 0, 0, 90 ) bar4 = createObject ( 994, 1544.9000244141, -1639.0000000000, 13.39999961853, 0, 0, 90 ) function og(thePlayer) if getElementType(thePlayer) == "player" then if ( getTeamName(getPlayerTeam(thePlayer)) == "Police" ) then moveObject (eBarrier, 1500, 1544.6999511719, -1630.5999755859, 13.10000038147, 0, 0, 90 ) end end end function cg(thePlayer) if getElementType(thePlayer) == "player" then if ( getTeamName(getPlayerTeam(thePlayer)) == "Police" ) then moveObject (eBarrier, 1500, 1544.6999511719, -1630.5999755859, 13.10000038147, 0, 90, 90 ) end end end addEventHandler( "onColShapeHit", gatecol, og ) addEventHandler( "onColShapeLeave", gatecol, cg ) Also the col circle is bad argument Read the wiki carefully
- 
	So, give him the codes to use -,- addCommandHandler createObject setElementPosition dxDrawText And the rest codes for the above the object someone will help you i forget them.
- 
	are you sure its ServerSide?
- 
	![iMr.3a[Z]eF](https://forum.multitheftauto.com/uploads/monthly_2016_09/984afa88a4a9add7eb29755bebc2f8a7_67365.thumb.png.ab73cf7c39afae5fa326a8cac6e292b9.png)  [KillPlayer/vehicle] when below specified Y choords.iMr.3a[Z]eF replied to mikkel809h's topic in Scripting you mean you want to kill player or destroy the vehicle when found on marker hit?
- 
	setTimer( functionName, 1000, 0 ) lol my bad
- 
	![iMr.3a[Z]eF](https://forum.multitheftauto.com/uploads/monthly_2016_09/984afa88a4a9add7eb29755bebc2f8a7_67365.thumb.png.ab73cf7c39afae5fa326a8cac6e292b9.png)  [KillPlayer/vehicle] when below specified Y choords.iMr.3a[Z]eF replied to mikkel809h's topic in Scripting in LUA nothing is impossible createMarker "onMarkerHit" getElementByType or getElementType giveWeapon or setPlayerFightingStyle getElementData
- 
	Yes, like this and use isGuestAccount in the event onPlayerJoin
- 
	debugscript 3 is always helps
- 
	This is set one random colors Also the function is no't named use setTimer setTimer ( 1000, 0, functionName)
- 
	he created a vehicles i guess addEventHandler("onPlayerSpawn",root, function (vehicle) if not isPedInVehicle( uPlayer ) then warpPedIntoVehicle ( uPlayer, vehicle ) local vehicle = getPedOccupiedVehicle( uPlayer ) if vehicle then local r, g, b = math.random( 255 ), math.random( 255 ), math.random( 255 ) setTimer( setVehicleColor( vehicle, r, g, b ), 500, 0 ) end end end )
- 
	what are you talking about?
- 
	Sorry i forget the timer addEventHandler("onPlayerSpawn",root, function (vehicle, uPlayer) if isPedInVehicle( uPlayer ) then local vehicle = getPedOccupiedVehicle( uPlayer ) if vehicle then local r, g, b = math.random( 255 ), math.random( 255 ), math.random( 255 ) setTimer( setVehicleColor( vehicle, r, g, b ), 1000, 0 ) end end end )
- 
	try addEventHandler("onPlayerSpawn",root, function (vehicle, uPlayer) if isPedInVehicle( uPlayer ) then local vehicle = getPedOccupiedVehicle( uPlayer ) if vehicle then local r, g, b = math.random( 255 ), math.random( 255 ), math.random( 255 ) setVehicleColor( vehicle, r, g, b ) end end end ) @NodZen : what did you changed? -.-
- 
	--server side -- Setting water properties. height = 0 SizeVal = 2998 -- 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( ) setWaterLevel ( -500, false, false ) 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 ) end addEventHandler("onResourceStart", resourceRoot, thaResourceStarting) local maxLevel = 35 -- max level local untilW = 120 -- sec local raising,level = (maxLevel/untilW)/10,0 untilW = nil local runningTimer function editSomeWater() level = level + raising -- level raising setWaterLevel ( water, level ) -- set the level if level >= maxLevel then -- compare values of level and max level setWaterLevel ( water, maxLevel ) -- set it back to max level for perfection if isTimer(runningTimer) then -- check if the timer exist killTimer(runningTimer) -- stop the timer end runningTimer,level,maxLevel = nil,nil,nil -- delete data (ram) end end setTimer ( editSomeWater, 30000, 1 ) -- set an invinity timer to set the water level, (0 = invinity) (only stops when you stop him with killTimer) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true ) outputChatBox ( "#FF0000Water starts to rise in 30sec! Be fast^^", getRootElement(), 255, 255, 255, true )

