Hooks/Shared/canUnwant

From Official DarkRP Wiki
Jump to: navigation, search
Hook
Hook name canUnwant(Player target, Player actor)
Description:
Whether someone can remove the wanted status from a player
Returns: boolean canUnwant, string message
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Shared/canUnwant]canUnwant 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

Return values

  1. canUnwant (boolean)
  2. A yes or no answer

  3. message (string)
  4. The message that is shown when the answer is no