Hooks/Server/playerGetSalary

From DarkRP
Jump to navigation Jump to search
Hook
Hook name playerGetSalary(Player ply, number amount)
Description:
When a player receives salary.
Returns: boolean suppress, string message, number amount
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/playerGetSalary]playerGetSalary hook[/url][/b]

Parameters[edit]

  1. ply (Player)
  2. The player who is receiving salary.

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

Return values[edit]

  1. suppress (boolean)
  2. Suppress the salary message.

  3. message (string)
  4. Override the default message (suppress must be false).

  5. amount (number)
  6. Override the salary.