removeMoney
Removes money from a player's account.
Parameters:
source
(number): Player server IDtype
(string, optional): Money type - default: 'cash'amount
(number, optional): Amount to remove - default: 0reason
(string, optional): Reason for transaction
Returns:
boolean
: True if successful, false if insufficient funds
Example:
if ps.removeMoney(source, 'cash', 100, 'Purchase item') then
print("Payment successful")
else
print("Insufficient funds")
end
Last updated