frakMoney
local returnedValue = exports["RiP-Fraktion"]:frakMoney(fraktion, action, amount)
Edit and save the fraction wallet balance
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
fraktion | String | No | Fraction name |
action | String | No | 'add' or 'remove' |
amount | Integer | No | Amount to add/remove |
Returned Value
If the function was successful it will return the new wallet balance. Otherwise it will return false
with an error notify or print.
Example
local balance = exports["RiP-Fraktion"]:frakMoney('rip', 'add', 9999)
if balance then
print("new balance: "..balance)
end