1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Miho931 2025-06-10 11:38:32 +02:00
parent c85f395337
commit 4f18c5777f
3 changed files with 16 additions and 13 deletions

View file

@ -10,18 +10,21 @@ table.insert(Integrations.modules[moduleType], moduleName)
-- This is just an EXAMPLE, so you have to edit it to make it work
Integrations[moduleType][moduleName].getSocietyMoney = function(societyName)
local money = exports['example-banking']:getMoney(societyName)
--local money = exports['example-banking']:getMoney(societyName)
local money = exports['okokBanking']:GetAccount(society)
return money
end
-- This is just an EXAMPLE, so you have to edit it to make it work
Integrations[moduleType][moduleName].giveMoneyToSociety = function(societyName, amount)
local success = exports['example-banking']:giveMoney(societyName, amount)
--local success = exports['example-banking']:giveMoney(societyName, amount)
local success = exports['okokBanking']:AddMoney(society, value)
return success -- Return true if success, false if not
end
-- This is just an EXAMPLE, so you have to edit it to make it work
Integrations[moduleType][moduleName].removeMoneyFromSociety = function(societyName, amount)
local success = exports['example-banking']:removeMoney(societyName, amount)
--local success = exports['example-banking']:removeMoney(societyName, amount)
local success = exports['okokBanking']:RemoveMoney(society, value)
return success -- Return true if success, false if not
end