Jump to navigation Jump to search
|Hook name||playerCanChangeTeam(Player ply, number team, boolean force)|
|Whether a player can change their team.|
|Returns:||boolean canChange, string reason|
|BBCode Link:||[b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerCanChangeTeam]playerCanChangeTeam hook[/url][/b]|
- ply (Player)
- team (number)
- force (boolean)
The player whom is to change their team.
The team number.
Whether this team change is important.