Command that drops an amount of the player's money in front of them.

Summary

Methods

Returns the translated command description with the available currency IDs listed.
Drops money in front of the player, or hands it to the player they are looking at.

Methods

Returns the translated command description with the available currency IDs listed.

Returns

  • String

CMD:on_run(actor, amount, currency)

shared plugins/currencies/plugin/commands/sh_dropmoney.lua:30

Drops money in front of the player, or hands it to the player they are looking at.

Parameters

  • actor Player the player who ran the command
  • amount String amount to drop, parsed with tonumber
  • currency String optional, defaults to nil currency ID; the default currency is used when it is omitted, see Currencies:get_default_currency

Defined in