This repository has been archived on 2025-12-11. You can view files and clone it, but cannot push or open issues or pull requests.

28 lines
850 B
Lua
Raw Normal View History

2025-03-17 16:12:58 +00:00
if not Config.BossManagedOutfits then return end
if Framework.ESX() then return end
function Management.RemoveItems()
if GetResourceState(Management.ResourceName) ~= "started" then return end
if Management.ItemIDs.Boss then
exports[Management.ResourceName]:RemoveBossMenuItem(Management.ItemIDs.Boss)
end
if Management.ItemIDs.Gang then
exports[Management.ResourceName]:RemoveGangMenuItem(Management.ItemIDs.Gang)
end
end
function Management.AddBackMenuItem(managementMenu, args)
local bossMenuEvent = "qb-bossmenu:client:OpenMenu"
if args.type == "Gang" then
bossMenuEvent = "qb-gangmenu:client:OpenMenu"
end
managementMenu.options[#managementMenu.options+1] = {
title = _L("menu.returnTitle"),
icon = "fa-solid fa-angle-left",
event = bossMenuEvent
}
end