From DarkRP
Jump to navigation Jump to search
Hook name OnPlayerChangedTeam(Player ply, number before, number after)
When your team (job) is changed.
Returns: nil
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Shared/OnPlayerChangedTeam]OnPlayerChangedTeam hook[/url][/b]


  1. ply (Player)
  2. The player that changed team. Clientside this hook is only called for the LocalPlayer.

  3. before (number)
  4. The team before the change.

  5. after (number)
  6. The team after the change.

Return values[edit]

This hook does not accept return values. You can still return a value to override the default implementation of this hook.