DarkRP.canRequestHit

From DarkRP
This page refers to DarkRP 2.4.3. This information may be incorrect as of later versions.
Check here for a up-to-date list of hooks.

Syntax[edit]

DescriptionWhether someone can request a hit.
Syntax
canRequestHit(Player hitman, Player customer, Player target, number price)
Returns"canRequest" (boolean): A yes or no as to whether the hit can be requested
"message" (string): The message that is shown when they can't request the hit

Arguments

  • hitman (Player)
  • The hitman performing the hit

  • customer (Player)
  • The customer for the current hit

  • target (Player)
  • The target of the current hit

  • price (number)
  • The agreed upon price