feat: add support for tk_bosstablet and zat-bossmenu boss menus

This commit is contained in:
SignApps Dev committed 2026-04-08 11:27:05 +02:00
1 parent b7fb0ec21e
commit 5cdc4b4e72
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