vms_tuning
SV.getSocietyMoney = function(societyName, cb)
if Config.Core == "ESX" then
local society = exports.bcs_companymanager:GetCompany(societyName)
cb(society.account.money)
elseif Config.Core == "QB-Core" then
local society = exports.bcs_companymanager:GetCompany(societyName)
cb(society.account.money)
end
end
SV.addSocietyMoney = function(societyName, amount)
if Config.Core == "ESX" then
local companyAccount = exports.bcs_companymanager:GetCompany(societyName)
companyAccount.account:AddMoney('money', amount)
elseif Config.Core == "QB-Core" then
local companyAccount = exports.bcs_companymanager:GetCompany(societyName)
companyAccount.account:AddMoney('money', amount)
end
end
SV.removeSocietyMoney = function(societyName, amount)
if Config.Core == "ESX" then
local companyAccount = exports.bcs_companymanager:GetCompany(societyName)
companyAccount.account:RemoveMoney('money', amount)
elseif Config.Core == "QB-Core" then
local companyAccount = exports.bcs_companymanager:GetCompany(societyName)
companyAccount.account:RemoveMoney('money', amount)
end
end