How to disable police dispatch?

I have the code:Citizen.CreateThread(function()
for i = 1, 12 do
Citizen.InvokeNative(0xDC0F817884CDD856, i, false)
end
end)

and it doesn’t stop peds from turning on sirens randomly. I mean they still answer to calls sometimes.

Is this what you’re looking for:


Citizen.CreateThread(function()
    while true do
        Citizen.Wait(3000)
       
        if GetPlayerWantedLevel(PlayerId()) ~= 0 then
            SetPlayerWantedLevel(PlayerId(), 0, false)
            SetPlayerWantedLevelNow(PlayerId(), false)
        end
    end
end)

Dude I mean like the disabledispatch thing doesn’t work properly, It does not come often but sometimes I hear cop sirens. People do not get wanted