Hooks/Server/moneyPrinterPrintMoney

From DarkRP
Jump to navigation Jump to search
Hook
Hook name moneyPrinterPrintMoney(Entity moneyprinter, number amount)
Description:
Called when a money printer is about to print money.
Returns: boolean prevent, number amount
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/moneyPrinterPrintMoney]moneyPrinterPrintMoney hook[/url][/b]

Parameters[edit]

  1. moneyprinter (Entity)
  2. The money printer that is about to print money

  3. amount (number)
  4. The amount to be printed

Return values[edit]

  1. prevent (boolean)
  2. Set to true to prevent the money printer from printing the money.

  3. amount (number)
  4. Optionally override the amount of money that will be printed.