SteeLRO Posted April 11, 2014 Share Posted April 11, 2014 (edited) Solved TY Edited April 11, 2014 by Guest Link to comment
Weii. Posted April 11, 2014 Share Posted April 11, 2014 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
SteeLRO Posted April 11, 2014 Author Share Posted April 11, 2014 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
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