Hooks/Server/playerGaveMoney

From Official DarkRP Wiki
Jump to navigation Jump to search
Hook
Hook name playerGaveMoney(Player player, Player otherPlayer, number amount)
Description:
Called when a player gives another player money.
Returns: nil
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerGaveMoney]playerGaveMoney hook[/url][/b]

Parameters

  1. player (Player)
  2. The player that gives the money.

  3. otherPlayer (Player)
  4. The player that receives the money.

  5. amount (number)
  6. The amount of money.

Return values

This hook does not accept return values. You can still return a value to override the default implementation of this hook.