Hooks/Client/teamChanged

From Official DarkRP Wiki
Jump to: navigation, search
Hook
Hook name teamChanged(number before, number after)
Description:
When your team is changed.
Error.png Warning:

This hook is deprecated. You should avoid using it as it only exists for backwards compatibility and may be removed from a future version.
Use the OnPlayerChangedTeam hook instead.

Returns: nil
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Client/teamChanged]teamChanged hook[/url][/b]

Parameters

  1. before (number)
  2. The team before the change.

  3. after (number)
  4. 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.