fsdfdsf Posted February 10, 2015 Share Posted February 10, 2015 (edited) Solved Ty Edited February 10, 2015 by Guest Link to comment
fsdfdsf Posted February 10, 2015 Author Share Posted February 10, 2015 i know this,but i can use setplayerteam in client if i used triggerserver event? Link to comment
TAPL Posted February 10, 2015 Share Posted February 10, 2015 setPlayerTeam is server side only, therefore you must use trigger to set the player in a team. Link to comment
fsdfdsf Posted February 10, 2015 Author Share Posted February 10, 2015 TAPL pls write me an example" it's hard Link to comment
TAPL Posted February 10, 2015 Share Posted February 10, 2015 triggerServerEvent("setTeam", localPlayer, getTeamFromName("TeamName")) addEvent("setTeam", true) addEventHandler("setTeam", root, function(team) if team then setPlayerTeam(client, team) end end) Link to comment
fsdfdsf Posted February 11, 2015 Author Share Posted February 11, 2015 (edited) ... Edited February 12, 2015 by Guest Link to comment
TAPL Posted February 11, 2015 Share Posted February 11, 2015 https://wiki.multitheftauto.com/wiki/Client_side_scripts Link to comment
fsdfdsf Posted February 12, 2015 Author Share Posted February 12, 2015 tapl,how to make when choose team the team selector hide? removeEventHandler? or cancelEvent ? Link to comment
Tomas Posted February 12, 2015 Share Posted February 12, 2015 tapl,how to make when choose team the team selector hide? removeEventHandler? or cancelEvent ? If you're using DX functions use removeEventHandler. 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