Skip to main content

vms_tuning

SV.getSocietyMoney = function(societyName, cb)
if Config.Core == "ESX" then
local society = exports['bcs_companymanager']:GetAccount(societyName)
cb(society.money)
elseif Config.Core == "QB-Core" then
local society = exports['bcs_companymanager']:GetAccount(societyName)
cb(society.money)
end
end

SV.addSocietyMoney = function(societyName, amount)
if Config.Core == "ESX" then
local companyAccount = exports.bcs_companymanager:GetAccount(societyName)
companyAccount.addMoney('money', amount)
elseif Config.Core == "QB-Core" then
local companyAccount = exports.bcs_companymanager:GetAccount(societyName)
companyAccount.addMoney('money', amount)
end
end

SV.removeSocietyMoney = function(societyName, amount)
if Config.Core == "ESX" then
local companyAccount = exports.bcs_companymanager:GetAccount(societyName)
companyAccount.removeMoney('money', amount)
elseif Config.Core == "QB-Core" then
local companyAccount = exports.bcs_companymanager:GetAccount(societyName)
companyAccount.removeMoney('money', amount)
end
end