mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 05:56:02 +01:00
Support for esx_society
`esx_society` requires societies to be registered manually before opening. this forces it also adds full support for charging, funding and retrieving balances in `esx_society`
This commit is contained in:
@@ -33,6 +33,7 @@ local bossMenuFunc = {
|
||||
|
||||
{ name = "esx_society",
|
||||
openBossMenu = function(isGang, group)
|
||||
TriggerServerEvent(getScript()..":registerESXSociety", isGang, group)
|
||||
TriggerEvent('esx_society:openBossMenu', group, function() end, { wash = false })
|
||||
end,
|
||||
},
|
||||
@@ -60,6 +61,20 @@ function openBossMenu(isGang, group)
|
||||
end
|
||||
end
|
||||
|
||||
-- Register ESX Society account in the server
|
||||
RegisterNetEvent(getScript()..":registerESXSociety", function(group)
|
||||
local checkExist = exports.esx_society:GetSociety(group)
|
||||
if checkExist == nil then
|
||||
exports.esx_society:registerSociety(
|
||||
group,
|
||||
Gangs[group] and Gangs[group].label or Jobs[group] and Jobs[group].label,
|
||||
group,
|
||||
group,
|
||||
group,
|
||||
{type = "public"}
|
||||
)
|
||||
end
|
||||
end)
|
||||
|
||||
-------------------------------------------------------------
|
||||
-- Global Duty Status
|
||||
|
||||
Reference in New Issue
Block a user