Estevam2d Posted September 2, 2014 Share Posted September 2, 2014 My problem is that the area always canceled and for all and not only for one player. help-me players do not obey. if anyone can help me I would greatly appreciate it sorry the bad english. local hillArea = createColRectangle ( -2171.0678710938, 678.17950439453, 15, 15 ) tf1 = setTimer ( function() outputChatBox ( "1% Espere carregar", player, 255, 0, 0, false) if isPedInVehicle( player ) then if getElementType ( player ) == "player" then local vehicle = getPedOccupiedVehicle ( player ) if vehicle then setVehicleLocked ( vehicle, true ) destroyElement (vehicle) setRadarAreaFlashing ( area, true ) end end end end, 5000, 1 ) function test(player) local teste = setRadarAreaFlashing ( hillArea , false ) end addEventHandler("onColShapeLeave", getRootElement(),test) function test(player) if isTimer ( tf1 ) then killTimer ( tf1 ) end end addEventHandler("onColShapeLeave", getRootElement(),test, true) Link to comment
kidvnet Posted September 3, 2014 Share Posted September 3, 2014 is this a server side script? if so, of course it will remove the colshape for all of players. because the hillarea is a server side element which sync to all of players Link to comment
Estevam2d Posted September 3, 2014 Author Share Posted September 3, 2014 A thank you, did not know that detail, I am new in this area script .. So I will do the client side. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now