From DarkRP
Jump to navigation Jump to search
Hook name onPlayerDemoted(Player source, Player target, string reason)
Called when a player is demoted.
Returns: nil
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/onPlayerDemoted]onPlayerDemoted hook[/url][/b]


  1. source (Player)
  2. The player who demoted the target.

  3. target (Player)
  4. The player who has been demoted.

  5. reason (string)
  6. The reason provided for the demote.

Return values[edit]

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