Hooks/Server/canUnarrest

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

Parameters

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

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

Return values

  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.