setMoney
setMoney
info
Sets the player's balance for the specified money type.
Use this export in your scripts.
Parameters
moneyType- The type of money to set ('cash','bank','dirty','pokerchips').source- The player's server ID.amount- The new balance to assign.
Returns
Returns true if the update was successful, otherwise false.
Usage
- Lua
- Javascript
exports['FS-Money']:setMoney('bank', source, 1500)
exports['FS-Money'].setMoney('bank', source, 1500)