setMoney
setMoney
Sets the player's balance for the specified money type.
Parameters
moneyType
- The type of money to set ('cash'
,'bank'
,'dirty'
).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-Lib']:setMoney('bank', source, 1500)
exports['FS-Lib'].setMoney('bank', source, 1500)