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