Server API
addOfflineMoney
Server API for REC_Core, with configuration and implementation details.
- Added
- Updated
Server side
Add money directly to an unloaded character’s stored account. Loaded characters are rejected.
| Argument | Type | Description |
|---|---|---|
citizenId | string | Persistent character ID. |
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:addOfflineMoney(citizenId, account, amount, reason)
