Jump to content

triggering


#Paper

Recommended Posts

errors: all addEventHandlers are bad arguments...

addEventHandler ( "onClientGUIClick", btnNitro, redirNitro, false ) 
addEventHandler ( "onClientGUIClick", btnMine, redirMine, false ) 
addEventHandler ( "onClientGUIClick", btnRepair, redirRepair, false ) 
  
function redirRepair() 
triggerServerEvent("onBuyRepair", getLocalPlayer()) 
end 
  
function redirNitro() 
triggerServerEvent("onBuyNitro", getLocalPlayer()) 
end 
  
function redirMine() 
triggerServerEvent("onBuyMine", getLocalPlayer()) 
end 

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