experimental but good

Early on I gave the name management to banking, I know I know it was dumb. BUT we can either deprecate them and move this to it or keep boss menu as its own module and deprecate the banking in time to a name that makes sense. Open to suggestions here
This commit is contained in:
MrNewb committed 2025-06-30 21:31:06 -04:00
1 parent 003153be63
commit 755fe9ba10
10 files changed
+132

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('esx_society') ~= 'started' then return end
BossMenu = BossMenu or {}
---This will get the name of the module being used.
---@return string
BossMenu.GetResourceName = function()
return "esx_society"
end
local registeredSocieties = {}
BossMenu.OpenBossMenu = function(src, jobName, jobType)
if not registeredSocieties[jobName] then
exports["esx_society"]:registerSociety(jobName, jobName, 'society_' .. jobName, 'society_' .. jobName, 'society_' .. jobName, {type = 'private'})
registeredSocieties[jobName] = true
end
TriggerClientEvent("community_bridge:client:OpenBossMenu", src, jobName, jobType)
end
return BossMenu