Hooks/Server/canUnarrest

From DarkRP
Hook
Hook name canUnarrest(Player unarrester, Player unarrestee)
Description:
Whether someone can unarrest another player.
Returns: boolean canUnarrest, string message
Realm:
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/canUnarrest]canUnarrest hook[/url][/b]

Parameters[edit]

  1. unarrester (Player)
  2. The player trying to unarrest someone.

  3. unarrestee (Player)
  4. The player being unarrested.

Return values[edit]

  1. canUnarrest (boolean)
  2. A yes or no as to whether the player can unarrest the other player.

  3. message (string)
  4. The message that is shown when they can't unarrest the player.