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