HUNGRY:3 Posted July 7, 2015 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 )
Eweest Posted July 7, 2015 Author 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)
darhal Posted July 7, 2015 Posted July 7, 2015 function wh1() if source == GUIEditor_Button[20] then triggerServerEvent("wh1", localPlayer) end end addEventHandler ( "onClientGUIClick", root, wh1 ) Like this #include <iostream> int main() { std::cout << "C++ is amazing <3" << std::endl; return 0; } I left MTA !... I m doing some tuts about (servers and scripting here) subscribe please
Eweest Posted July 7, 2015 Author 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)
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