Jump to content

Cars Only for staff & shoping in F1


//_Dragon

Recommended Posts

Actually if you need the gui window only for staff then you should use what cody's gave you above and about the shop make you'r own one and bind it to F1 :).

I'm not good scripter :3 i'm still 25% scripter Only i need some one give me the script ( cleint / server ) then i'll continue creating the mod :wink:

Link to comment
I supplied everything you will need.
function guihunter () 
 local accountname = getAccountName (getPlayerAccount(client)) <- From GUI 
 if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "vip" ) ) then 
price = 0 
else 
price =25000 
end 
end 
else 
  

Not working | i want make Only staff can get hydra & hunter & rhino , & player can't get them they most buy them from f1

Link to comment
He is trying to clone grafuroam or you cant understand? Enter on that server and you will see this things on it.

Get fucking out of my topic -_- | + i'm pro then u :) all mod's groam u have them u only stilling mods not creating new mod like me . so get out of my topic ok ? or .....

Link to comment

Server Side

     function hydra () 
     local accountname = getAccountName (getPlayerAccount(client)) <- From GUI 
     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 Side, triggers it.

    triggerServerEvent ( "onHydraClick", resourceRoot ) 

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