Hooks/Server/playerWarranted

From Official DarkRP Wiki
Jump to navigation Jump to search
Hook
Hook name playerWarranted(Player criminal, Player actor, string reason)
Description:
When a player is warranted.
Returns: boolean suppressMsg
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerWarranted]playerWarranted hook[/url][/b]

Parameters

  1. criminal (Player)
  2. The potential criminal.

  3. actor (Player)
  4. The person who wanted the potential criminal.

  5. reason (string)
  6. The reason for wanting this person.

Return values

  1. suppressMsg (boolean)
  2. Return true to make the warrant silent.