Server API
addMoney
Server API for REC_Core, with configuration and implementation details.
- Added
- Updated
Server side
Add a positive whole-number amount to a loaded character’s account.
| Argument | Type | Description |
|---|---|---|
playerId | integer | Connection ID; use a positive integer unless the export explicitly accepts the console. |
account | string | Configured account name, such as cash or bank. |
amount | integer | Amount to add/remove, or the new balance for setMoney. |
reason | string? | Change reason; omitted or empty becomes @ |
A trailing ? marks an optional argument.
Returns boolean.
exports.REC_Core:addMoney(playerId, account, amount, reason)
