Hooks/Shared/OnPlayerChangedTeam

From Official DarkRP Wiki
Jump to navigation Jump to search
Hook
Hook name OnPlayerChangedTeam(Player ply, number before, number after)
Description:
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]

Parameters

  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

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