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


  1. target (Player)
  2. The player to get the search warrant for

  3. actor (Player)
  4. The player requesting the warrant

  5. reason (Player)
  6. The reason for the search warrant

Return values[edit]

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

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