if IsControlJustReleased(0, Keys['F6']) and not isDead and PlayerData.job ~= nil and PlayerData.job.name == 'police' and not ESX.UI.Menu.IsOpen('default', GetCurrentResourceName(), 'police_actions') then
if Config.MaxInService == -1 then
OpenPoliceActionsMenu()
elseif playerInService then
OpenPoliceActionsMenu()
else
TriggerEvent("pNotify:SendNotification", {text =_U('service_not'),type = "warning",queue = "duty", theme = "metroui", timeout = 2500,layout = "topRight" })
end
end