[How to]Removing NPC police

roleplay
police
ems
cops
help

#1

Please help.I need delete NPC police,ambulance and traffic police


#2

Make a client script and put this into it:

Citizen.CreateThread(function()
    for i = 1, 32 do
        Citizen.InvokeNative(0xDC0F817884CDD856, i, false)
    end
    while true do
        Citizen.Wait(0)
        if GetPlayerWantedLevel(PlayerId()) ~= 0 then
            ClearPlayerWantedLevel(PlayerId())
        end
    end
end)

Will stop emergency services from dispatching and also disable all wanted levels for all players, just in case.
As for random AI cops spawning near police stations, I don’t think you can easily remove them.


#3

I dont need to remove the wanted lvl.I need remove npc cops


#4

It will reduce the amount of NPC cops, AFAIK you can’t disable them completely.


#5

but at the same time wanted lvl isnt given and cops(players) dont see the crime?


#6

You can remove the wanted level part and keep the first part, this will allow for wanted level but cops not dispatched, they are however still in the game and if close by will attack people who are wanted.

for i = 1, 32 do
    Citizen.InvokeNative(0xDC0F817884CDD856, i, false)
end

#9

Try this: [RELEASE] Disable ALL Emergency Service and Military Dispatching

Works fine for me


#11

cops are stayed on the street and their cars too.Dont work(