09. Jobs support - RuisSoftware/FiveM-Resources-2024 GitHub Wiki
esx_policejob
(Updated: 19-12-2020)
Add suport for jobs like Open esx_policejob/client/main.lua
Find function: OpenBodySearchMenu(player) and remove it. Add this code:
function OpenBodySearchMenu(player)
TriggerEvent("dp_inventory:openPlayerInventory", GetPlayerServerId(player), GetPlayerName(player))
end
You can do this for all default ESX jobs with the function OpenBodySearchMenu(player)