Hooks/Server/canArrest

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

Parameters

  1. arrester (Player)
  2. The player trying to arrest someone.

  3. arrestee (Player)
  4. The player being arrested.

Return values

  1. canArrest (boolean)
  2. A yes or no as to whether the arrester can arrest the arestee.

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