From Official DarkRP Wiki
|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.
- canChange (boolean)
- reason (string)
Whether the player can change their team.
The reason why the player cannot change their team.