diff --git a/shared/jobfunctions.lua b/shared/jobfunctions.lua index 8b6a0c6..d4fafec 100644 --- a/shared/jobfunctions.lua +++ b/shared/jobfunctions.lua @@ -231,3 +231,16 @@ function useDoor(data) DoScreenFadeIn(1000) Wait(100) end + + +function openBossMenu(isGang, group) + if isStarted("qb-management") then + if isGang then + TriggerEvent("qb-gangmenu:client:OpenMenu") + else + TriggerEvent("qb-bossmenu:client:OpenMenu") + end + elseif isStarted("qbx_management") then + exports["qbx_management"]:OpenBossMenu(isGang and "gang" or "job") + end +end \ No newline at end of file