Merge pull request #190 from AntOneofM/main

feat: add support for tk_bosstablet and zat-bossmenu boss menus
This commit is contained in:
MrNewb authored and GitHub committed 2026-04-13 08:49:55 -04:00
commit 5a659510e0
5 files changed
+60

No files matched your search

+4
View File
@@ -18,6 +18,10 @@ RegisterNetEvent('community_bridge:client:OpenBossMenu', function(jobName, jobTy
end, {wash = false})
elseif BossMenu.GetResourceName() == "qbx_management" then
exports.qbx_management:OpenBossMenu(jobType)
elseif BossMenu.GetResourceName() == "tk_bosstablet" then
exports.tk_bosstablet:openBossMenu()
elseif BossMenu.GetResourceName() == "zat-bossmenu" then
exports['zat-bossmenu']:OpenBossMenu(jobType or 'job')
end
end)
+12
View File
@@ -0,0 +1,12 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('tk_bosstablet') ~= 'started' then return end
BossMenu = BossMenu or {}
---This will get the name of the module being used.
---@return string
BossMenu.GetResourceName = function()
return "tk_bosstablet"
end
return BossMenu
+16
View File
@@ -0,0 +1,16 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('tk_bosstablet') ~= 'started' then return end
BossMenu = BossMenu or {}
---This will get the name of the module being used.
---@return string
BossMenu.GetResourceName = function()
return "tk_bosstablet"
end
BossMenu.OpenBossMenu = function(src, jobName, jobType)
TriggerClientEvent("community_bridge:client:OpenBossMenu", src, jobName, jobType)
end
return BossMenu
+12
View File
@@ -0,0 +1,12 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('zat-bossmenu') ~= 'started' then return end
BossMenu = BossMenu or {}
---This will get the name of the module being used.
---@return string
BossMenu.GetResourceName = function()
return "zat-bossmenu"
end
return BossMenu
+16
View File
@@ -0,0 +1,16 @@
---@diagnostic disable: duplicate-set-field
if GetResourceState('zat-bossmenu') ~= 'started' then return end
BossMenu = BossMenu or {}
---This will get the name of the module being used.
---@return string
BossMenu.GetResourceName = function()
return "zat-bossmenu"
end
BossMenu.OpenBossMenu = function(src, jobName, jobType)
TriggerClientEvent("community_bridge:client:OpenBossMenu", src, jobName, jobType)
end
return BossMenu