Files
red-valley/resources/[framework]/[base]/[jobs]/17mov_JobCenter/client/utils.lua

25 lines
739 B
Lua
Raw Normal View History

2026-03-29 21:41:17 +03:00
Config.TargetSystem = nil
if GetResourceState("qb-target") ~= "missing" then
Config.TargetSystem = "qb-target"
elseif GetResourceState("qtarget") ~= "missing" then
Config.TargetSystem = "qtarget"
elseif GetResourceState("ox_target") ~= "missing" then
Config.TargetSystem = "qtarget" -- OX_Target have a backward compability to qtarget
end
Utils.AddEntityToTarget = function(entity)
exports[Config.TargetSystem]:AddTargetEntity(entity, {
options = {
{
icon = "fas fa-briefcase",
label = _L("Interaction.Open"),
action = function()
Utils.ToggleNUI(true)
end,
},
},
distance = 1.5
})
end