removeMoney
removeMoney
Removes money from a player's balance.
Parameters
moneyType
- The type of money to deduct from ('cash'
,'bank'
,'dirty'
).source
- The player's server ID.amount
- The amount to remove.reason
(optional)` - A reason to show in the player's notification.
Returns
Returns true
if the deduction succeeded, otherwise false
.
Usage
- Lua
- Javascript
exports['FS-Lib']:removeMoney('bank', source, 250, 'Purchase')
exports['FS-Lib'].removeMoney('bank', source, 250, 'Purchase')