Ok So I had to make some changes to it to make it work better with the police menu.
Add this to your esx_policejob this is what I did. In client/main.lua of esx_policejob
I added
{label = _U('PIS'), value = 'PIS'},
{label = _U('PIScallmenu'), value = 'PIScallmenu'},
{label = _U('PIScall'), value = 'PIScall'},
{label = _U('PIStraffic'), value = 'PIStraffic'},
{label = _U('mimic'), value = 'mimic'},
{label = _U('PIStransport'), value = 'PIStransport'},
{label = _U('PIStow'), value = 'PIStow'},
to here
{label = _U('vehicle_interaction'), value = 'vehicle_interaction'},
{label = _U('PIS'), value = 'PIS'},
{label = _U('PIScallmenu'), value = 'PIScallmenu'},
{label = _U('PIScall'), value = 'PIScall'},
{label = _U('PIStraffic'), value = 'PIStraffic'},
{label = _U('mimic'), value = 'mimic'},
{label = _U('PIStransport'), value = 'PIStransport'},
{label = _U('PIStow'), value = 'PIStow'},
{label = _U('object_spawner'), value = 'object_spawner'}
then I added this
elseif data.current.value == 'PIS' then
TriggerEvent('PISMenu')
ESX.UI.Menu.CloseAll()
elseif data.current.value == 'PIScallmenu' then
TriggerEvent('PIScallmenu')
ESX.UI.Menu.CloseAll()
elseif data.current.value == 'PIScall' then
TriggerEvent('PIScall')
ESX.UI.Menu.CloseAll()
elseif data.current.value == 'PIStraffic' then
TriggerEvent('PIStraffic')
ESX.UI.Menu.CloseAll()
elseif data.current.value == 'PIStransport' then
TriggerEvent('PIStransport')
elseif data.current.value == 'PIStow' then
TriggerEvent('PIStow')
elseif data.current.value == 'mimic' then
TriggerEvent('PISmimic')
ESX.UI.Menu.CloseAll()
above the line
elseif data.current.value == 'object_spawner' then
In PIS/other/menu_client I changed lines 140-143 from
WarMenu.Display()
elseif IsDisabledControlPressed(1, modifier) and IsDisabledControlJustPressed(1, mainmnu) then
WarMenu.OpenMenu('PIS:main')
end
to this
WarMenu.Display()
WarMenu.OpenMenu('PIS:main')
end
and added this at the end of PIS/other/menu_client.lua
AddEventHandler('PISMenu',function(PlayerPed)
WarMenu.OpenMenu('PIS:main')
end)
AddEventHandler('PIScall',function(PlayerPed)
WarMenu.OpenMenu('PIS:call')
end)
AddEventHandler('PIScallmenu',function(PlayerPed)
WarMenu.OpenMenu('PIS:call:mnu')
end)
AddEventHandler('PIStransport',function(PlayerPed)
TriggerEvent('pis:arr:pt')
end)
AddEventHandler('PIStow',function(PlayerPed)
TriggerEvent('pis:spawnTow')
end)
AddEventHandler('PIStraffic',function(PlayerPed)
WarMenu.OpenMenu('PIS:trfc')
end)
AddEventHandler('PISmimic',function(PlayerPed)
WarMenu.OpenMenu('PIS:trfc:veh')
end)
and to the locale/en.lua in policejob i added
['PIScall'] = 'PIS - Callout Responce menu',
['PIScallmenu'] = 'PIS - Callouts menu',
['PIStransport'] = 'PIS - Spawn prisoner transport',
['PIStow'] = 'PIS - Spawn tow truck',
['PIStraffic'] = 'PIS - Traffic stop menu',
['mimic'] = 'PIS - Mimic menu',
It’s just edited so it works for ‘me’ if it works for you too… Great!!! if not hopefully this has gave you and idea of how u can change it around to suit your needs!