Hooks/Server/playerWalletChanged

From Official DarkRP Wiki
Jump to navigation Jump to search
Hook
Hook name playerWalletChanged(Player ply, number amount, number wallet)
Description:
When a player receives money.
Returns: number total
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerWalletChanged]playerWalletChanged hook[/url][/b]

Parameters

  1. ply (Player)
  2. The player who is getting money.

  3. amount (number)
  4. The amount of money given to the player.

  5. wallet (number)
  6. How much money the player had before receiving the money.

Return values

  1. total (number)
  2. Override the total amount of money (optional).