Jump to content

Cars Only for staff & shoping in F1


//_Dragon

Recommended Posts

Posted

---sevrer  
    function hydra () 
     local accountname = getAccountName (getPlayerAccount(client))  
     if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then 
     local x, y, z = getElementPosition ( client ) 
     hydra = createVehicle ( 520, x, y, z  ) 
     warpPedIntoVehicle (client, hydra )   
    else 
    outputChatBox ( "You must be admin to use this", client, 255, 255, 255, true ) 
    end 
    end 
  
  
rootElement = getRootElement() 
addEventHandler( "onHydraClick", rootElement, hydra)   
addEvent("onHydraClick", true) 
  

---client  
function hydra () 
triggerServerEvent ( "onHydraClick", resourceRoot ) 
outputConsole("A hydra has been spawned.") 
end 
  

---meta  
<meta> 
<info name="staff's hydra" author="Oussez" version="1.1" type="script" /> 
    <script src="server.lua" type="server"/> 
    <script src="client.lua" type="client"/> 
</meta> 

when i'm not admin i can get hydra :3 i want only admin can get it is there any bugs ??

Posted

If im not pro why then i made this script working perfect??

When I hear someone saying Mac is better than PC.

o0pjNKG.gif w0t?VeJXjxD.gifw0t? evspcFJ.gifw0t?

Great minds discuss ideas, average minds discuss events and small minds discuss people.

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