Update sh_banking.lua

This commit is contained in:
Miho931 2025-06-10 11:54:11 +02:00
parent 4f18c5777f
commit 7ea7f77c38

View file

@ -11,20 +11,20 @@ table.insert(Integrations.modules[moduleType], moduleName)
-- This is just an EXAMPLE, so you have to edit it to make it work -- This is just an EXAMPLE, so you have to edit it to make it work
Integrations[moduleType][moduleName].getSocietyMoney = function(societyName) 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) local money = exports['okokBanking']:GetAccount(societyName)
return money return money
end end
-- This is just an EXAMPLE, so you have to edit it to make it work -- This is just an EXAMPLE, so you have to edit it to make it work
Integrations[moduleType][moduleName].giveMoneyToSociety = function(societyName, amount) 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) local success = exports['okokBanking']:AddMoney(societyName, amount)
return success -- Return true if success, false if not return success -- Return true if success, false if not
end end
-- This is just an EXAMPLE, so you have to edit it to make it work -- This is just an EXAMPLE, so you have to edit it to make it work
Integrations[moduleType][moduleName].removeMoneyFromSociety = function(societyName, amount) 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) local success = exports['okokBanking']:RemoveMoney(societyName, amount)
return success -- Return true if success, false if not return success -- Return true if success, false if not
end end