Command that gives an amount of the player's money to the entity they are looking at.

Summary

Methods

Returns the translated command description with the available currency IDs listed.
Gives money to the entity the player is 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_givemoney.lua:30

Gives money to the entity the player is looking at.

Parameters

  • actor Player the player who ran the command
  • amount String amount to give, 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