Reggae Posted August 23, 2013 Share Posted August 23, 2013 I want it so a player click a button it is set to the team "Trucker" my client : addEventHandler('onClientGUIClick',GUIEditor.staticimage[2],setSkin,false) function setSkin ( ) guiSetVisible (GUIEditor.staticimage[1], false) showCursor (false) end addEvent("getJob", true) addEventHandler("getJob",root,setSkin) Serverside: function createSAPDTeam () SAPDteam = createTeam ("Caminhoneiro", 100, 149, 237) end addEventHandler ("onResourceStart", resourceRoot, createSAPDTeam) function joinSAPD(id) setPlayerTeam ( hitElement, Caminhoneiro ) end addEvent("getJob", true) addEventHandler("getJob",root,joinSAPD) Script Not Worked Help !! Link to comment
DNL291 Posted August 23, 2013 Share Posted August 23, 2013 Server: function createSAPDTeam () SAPDteam = createTeam ("Caminhoneiro", 100, 149, 237) end addEventHandler ("onResourceStart", resourceRoot, createSAPDTeam) function joinSAPD() setPlayerTeam ( source, SAPDteam ) end addEvent("getJob", true) addEventHandler("getJob",root,joinSAPD) Client: function setSkin ( ) guiSetVisible (GUIEditor.staticimage[1], false) showCursor (false) triggerServerEvent("getJob", localPlayer) end 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