Jump to content

onColShapeLeave help-me


Recommended Posts

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 :roll:

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, 5000, 1 ) 
function test(player)            
local teste = setRadarAreaFlashing ( hillArea , false ) 
addEventHandler("onColShapeLeave", getRootElement(),test) 
function test(player) 
if isTimer ( tf1 ) then killTimer ( tf1 ) end 
addEventHandler("onColShapeLeave", getRootElement(),test, true) 

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...