Hooks/Server/calculateNPCKillPay

From DarkRP
Hook
Hook name calculateNPCKillPay(Player ply, Entity npc)
Description:
How much a player should profit from killing a NPC
Returns: number total
Realm:
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/calculateNPCKillPay]calculateNPCKillPay hook[/url][/b]

Parameters[edit]

  1. ply (Player)
  2. The player who killed the NPC.

  3. npc (Entity)
  4. The NPC that they killed.

Return values[edit]

  1. total (number)
  2. How much money they should earn.