Hooks/Server/playerWanted

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

Parameters[edit]

  1. criminal (Player)
  2. The criminal.

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

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

Return values[edit]

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