Skip to main content

frakMoney

local returnedValue = exports["RiP-Fraktion"]:frakMoney(fraktion, action, amount) 

Edit and save the fraction wallet balance

Arguments

NameTypeOptionalExplenation
fraktionStringNoFraction name
actionStringNo'add' or 'remove'
amountIntegerNoAmount 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