Functions/Player/Server/requestHit

From Official DarkRP Wiki
Jump to: navigation, search
Function
Function name Player:requestHit(Player customer, Player target, number price)
Description:
Request a hit to a hitman.
Returns: boolean succeeded
Part of Library: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/Player/Server/requestHit]Player:requestHit[/url][/b]

Function parameters

  1. customer (Player)
  2. The customer who paid for the hit.

  3. target (Player)
  4. The target of the hit.

  5. price (number)
  6. The price of the hit.


Function return values

  1. succeeded (boolean)
  2. Whether the hit request could be made.