Drag fdsdev_bossmenu into your resources folder and add this string to server.cfg
Dependencies: screenshot_basic and ox_target/qb-target/esx_textui
start fdsdev_bossmenu
This is the configuration file. You can add some custom functions thanks to the edit.lua (server and client) files with framework references.
Config = {}
Config.Framework = "qb-core" -- esx, qb-core
Config.AutoSQL = true -- sql will be executed automatically
Config.ESXJob2 = false -- enable only if you have ESX.PlayerData.job2 (open ticket on my discord to add this to your framework)
Config.ESXSocietyEvents = false -- Replace "esx_society:openBossMenu" event
Config.ApplicationsMenuZone = vec3(-1082, -247.51, 37.0)
Config.Targeting = {
TargetSystem = {
use = true,
type = 'qb' -- ox, qb
},
textUI = { -- Only ESX
use = false, -- textui
maxDistance = 5.0,
key = 38 --
},
Custom = {
use = false, -- textui
-- edit on edit.lua
},
}
Config.Unemployed = { -- Default Job (Job to be given after fire)
Job = 'unemployed',
Grade = '0'
}
Config.BossMenu = {
["police"] = {
job = "police", -- job to open boss menu
label = "Police",
minGrade = 1, -- minimum grade to access boss menu
bossMenuCoords = vec3(459.428, -988.584, 24.39), -- coords for target/textUI
applicationCoords = vec3(442.428, -980.584, 29.69) -- application menu Coords
}
}
Config.Gangs = {
["lostmc"] = {
job = "lostmc", -- job to open boss menu
label = "The Lost MC",
minGrade = 1, -- minimum grade to access boss menu
bossMenuCoords = vec3(-900.919, -204.496, 37.8), -- coords for target/textUI
}
}
Config.ESXSocietyEvents explained down here.
local gang = true -- true or false
local job = "lostmc" -- your desidered job
TriggerEvent('esx_society:openBossMenu', job, function(data2, menu2)
menu2.close()
end, gang)