forked from Simnation/Main
a
This commit is contained in:
parent
c85f395337
commit
4f18c5777f
3 changed files with 16 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue