Hooks/Shared/canRequestHit

From Official DarkRP Wiki
Jump to navigation Jump to search
Hook
Hook name canRequestHit(Player hitman, Player customer, Player target, number price)
Description:
Whether someone can request a hit.
Returns: boolean canRequest, string message, number price
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Shared/canRequestHit]canRequestHit hook[/url][/b]

Parameters

  1. hitman (Player)
  2. The hitman performing the hit

  3. customer (Player)
  4. The customer for the current hit.

  5. target (Player)
  6. The target of the current hit

  7. price (number)
  8. The agreed upon price.

Return values

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

  3. message (string)
  4. The message that is shown when they can't request the hit.

  5. price (number)
  6. An override for the price of the hit.