This commit is contained in:
2026-07-07 21:08:52 +02:00
commit 4c20cfc716
2613 changed files with 318021 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
local moduleType = "banking" -- Module category
local moduleName = "default" -- THIS module name
-- Don't touch, required to appear in in-game settings
Integrations.modules = Integrations.modules or {}
Integrations.modules[moduleType] = Integrations.modules[moduleType] or {}
Integrations[moduleType] = Integrations[moduleType] or {}
Integrations[moduleType][moduleName] = {}
table.insert(Integrations.modules[moduleType], moduleName)
--[[
Nothing to edit, the code is internal
]]

View File

@@ -0,0 +1,27 @@
local moduleType = "banking" -- Module category
local moduleName = "example" -- THIS module name
-- Don't touch, required to appear in in-game settings
Integrations.modules = Integrations.modules or {}
Integrations.modules[moduleType] = Integrations.modules[moduleType] or {}
Integrations[moduleType] = Integrations[moduleType] or {}
Integrations[moduleType][moduleName] = {}
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)
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)
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)
return success -- Return true if success, false if not
end

View File

@@ -0,0 +1,24 @@
local moduleType = "banking" -- Module category
local moduleName = "okokbanking" -- THIS module name
-- Don't touch, required to appear in in-game settings
Integrations.modules = Integrations.modules or {}
Integrations.modules[moduleType] = Integrations.modules[moduleType] or {}
Integrations[moduleType] = Integrations[moduleType] or {}
Integrations[moduleType][moduleName] = {}
table.insert(Integrations.modules[moduleType], moduleName)
Integrations[moduleType][moduleName].getSocietyMoney = function(societyName)
local money = exports['okokBanking']:GetAccount(societyName)
return money
end
Integrations[moduleType][moduleName].giveMoneyToSociety = function(societyName, amount)
local success = exports['okokBanking']:AddMoney(societyName, amount)
return success -- Return true if success, false if not
end
Integrations[moduleType][moduleName].removeMoneyFromSociety = function(societyName, amount)
local success = exports['okokBanking']:RemoveMoney(societyName, amount)
return success -- Return true if success, false if not
end