|Hook name||OnPlayerChangedTeam(Player ply, number before, number after)|
|When your team (job) is changed.|
|BBCode Link:||[b][url=http://wiki.darkrp.com/index.php?title=Hooks/Shared/OnPlayerChangedTeam]OnPlayerChangedTeam hook[/url][/b]|
- ply (Player)
- before (number)
- after (number)
The player that changed team. Clientside this hook is only called for the LocalPlayer.
The team before the change.
The team after the change.
This hook does not accept return values. You can still return a value to override the default implementation of this hook.