Hooks/Server/canEarnNPCKillPay

From DarkRP
Jump to navigation Jump to search
Hook
Hook name canEarnNPCKillPay(Player ply, Entity npc)
Description:
If a player should profit from killing a NPC
Returns: boolean answer
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/canEarnNPCKillPay]canEarnNPCKillPay 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. answer (boolean)
  2. Whether the player can earn money.