Hooks/Shared/canWanted

From Official DarkRP Wiki
Jump to navigation Jump to search
Hook
Hook name canWanted(Player target, Player actor, Player reason)
Description:
Whether someone can make a player wanted
Returns: boolean canRequest, string message
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Shared/canWanted]canWanted hook[/url][/b]

Parameters

  1. target (Player)
  2. The player to make wanted by the police

  3. actor (Player)
  4. The player requesting the wanted status

  5. reason (Player)
  6. The reason

Return values

  1. canRequest (boolean)
  2. A yes or no as to whether the wanted can be requested

  3. message (string)
  4. The message that is shown when it can't