Skip to content

Commit

Permalink
feat(client/main): Add OpenBossMenu export
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunar-Scripts authored Feb 12, 2024
1 parent aab4f57 commit 1895fad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ end
-- Opens main boss menu changing function based on the group provided.
---@param groupType GroupType
function OpenBossMenu(groupType)
if not QBX.PlayerData[groupType].name or not QBX.PlayerData[groupType].isboss then return end
if groupType ~= 'gang' and groupType ~= 'job' or not QBX.PlayerData[groupType].name or not QBX.PlayerData[groupType].isboss then return end

local bossMenu = {
{
Expand Down Expand Up @@ -172,6 +172,8 @@ function OpenBossMenu(groupType)
lib.showContext('openBossMenu')
end

exports('OpenBossMenu', OpenBossMenu)

local function createZone(zoneInfo)
if config.useTarget then
exports.ox_target:addBoxZone({
Expand Down

0 comments on commit 1895fad

Please sign in to comment.