removeMoney
removeMoney
info
Removes money from a player's balance.
Use this export in your scripts.
Parameters
moneyType- The type of money to deduct from ('cash','bank','dirty','pokerchips').source- The player's server ID.amount- The amount to remove.reason(optional)` - A reason to show in the player's notification.sendNotify(optional): Whether to display the notification to the user (default: true).
Returns
Returns true if the deduction succeeded, otherwise false.
Usage
- Lua
- Javascript
exports['FS-Money']:removeMoney('bank', source, 250, 'Purchase')
exports['FS-Money'].removeMoney('bank', source, 250, 'Purchase')