Eweest Posted July 7, 2015 Share Posted July 7, 2015 (edited) delete Edited July 9, 2015 by Guest Link to comment
HUNGRY:3 Posted July 7, 2015 Share Posted July 7, 2015 server function wheel1() if isPedInVehicle(source) then addVehicleUpgrade(getPedOccupiedVehicle(source), 1073) end end addEvent("wh1", true) addEventHandler("wh1", root, wheel1 ) client function wh1() if source == GUIEditor_Button[20] triggerServerEvent("wh1", localPlayer) end end addEventHandler ( "onClientGUIClick", root, wh1 ) Link to comment
Eweest Posted July 7, 2015 Author Share Posted July 7, 2015 server function wheel1() if isPedInVehicle(source) then addVehicleUpgrade(getPedOccupiedVehicle(source), 1073) end end addEvent("wh1", true) addEventHandler("wh1", root, wheel1 ) client function wh1() if source == GUIEditor_Button[20] triggerServerEvent("wh1", localPlayer) end end addEventHandler ( "onClientGUIClick", root, wh1 ) Thanks) Link to comment
darhal Posted July 7, 2015 Share Posted July 7, 2015 function wh1() if source == GUIEditor_Button[20] then triggerServerEvent("wh1", localPlayer) end end addEventHandler ( "onClientGUIClick", root, wh1 ) Like this Link to comment
Eweest Posted July 7, 2015 Author Share Posted July 7, 2015 function wh1() if source == GUIEditor_Button[20] then triggerServerEvent("wh1", localPlayer) end end addEventHandler ( "onClientGUIClick", root, wh1 ) Like this I noticed this) 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