Jump to content

problem destroy


SteeLRO

Recommended Posts

vipVehicles = {} 
function VIPCAR2 ( ) 
    local accName = getAccountName ( getPlayerAccount ( source ) ) 
    if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then  
        if isElement(vipVehicles[source]) then 
            destroyElement(vipVehicles[source]) 
        end 
        x,y,z = getElementPosition ( source ) 
        vipVehicles[source]  = createVehicle ( 400, x + 3, y, z + 1 ) 
        outputChatBox("[VIP]Vehicle Created",source,0,255,0,false) 
    end 
end 
addEvent( "VIPCAR2", true ) 
addEventHandler( "VIPCAR2", getRootElement(),VIPCAR2 ) 

Try that

Link to comment
vipVehicles = {} 
function VIPCAR2 ( ) 
    local accName = getAccountName ( getPlayerAccount ( source ) ) 
    if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then  
        if isElement(vipVehicles[source]) then 
            destroyElement(vipVehicles[source]) 
        end 
        x,y,z = getElementPosition ( source ) 
        vipVehicles[source]  = createVehicle ( 400, x + 3, y, z + 1 ) 
        outputChatBox("[VIP]Vehicle Created",source,0,255,0,false) 
    end 
end 
addEvent( "VIPCAR2", true ) 
addEventHandler( "VIPCAR2", getRootElement(),VIPCAR2 ) 

Try that

ty

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