Hooks/Server/playerWanted

From Official DarkRP Wiki
Jump to: navigation, 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

  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

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