π²Custom money management
To adapt the script to another money management system, here you can find the functions that need to be adapted
SERVER
if Config.MoneyManagementSystem == "custom" then
MoneyManagement = {
-- @param society: string
-- @return number
GetMoney = function(society)
return exports["custom-money-management"]:GetAccount(society)
end,
-- @param society: string
-- @param amount: number
AddMoney = function(society, amount)
exports["custom-money-management"]:AddMoney(society, amount)
end,
-- @param society: string
-- @param amount: number
RemoveMoney = function(society, amount)
exports["custom-money-management"]:RemoveMoney(society, amount)
end
}
endLast updated