[Release] removeAIcops (this removes all AI cops)

This has always been the case for some reason. Any server I know with ‘cops removed’ still has airport cops spawn, and armed security guards appear at the docks sometimes.

Is there a script for when a player gets a wanted level, police (players) can arrest them?

1 Like

that is a good idea, and currently, no, no script exists of that type.

1 Like

This does not seem to work at all. Cops and cars are still spawning.

because as u can see in the scripts

ClearAreaOfCops

It only clears the cops spawning in ur area of radius 400

It’s not to disable it for whole server

How would I go about disabling it for the whole server then?

I used the first post removeAIcops file.
But no police car was taken. Are all

its for vrp?

No, it should work with every framework.

Use the latest one.

Hmmm… I can’t get it to work. ;(

No errors in log, even tryed to restart the resource.

Any idea ?

vRP and artifacts 1354

eh, if your using the latest one, and ensure in the logs that the resource ‘removeAIcops’ is being started, then there isn’t really much I can do…

Have you spotted any AI police appearing on the server?

On a couple servers I have been on that use my script, there has been zero presence of police vehicles spawning in at random, so yeah, I am not aware as to what your isuse could be.

Sorry.

Hi,

your script works for awhile then it just stopped working and they are all back normally. No idea why.

1 Like

any idea for ambulance cars?

2 Likes

Quick question, how do I get AI cops to work, I dont have anything disabling them but I cant get a wanted level

Citizen.CreateThread(function()

while true do

    Citizen.Wait(0)

    if GetPlayerWantedLevel(PlayerId()) ~= 0 then

        SetPlayerWantedLevel(PlayerId(), 0, false)

        SetPlayerWantedLevelNow(PlayerId(), false)

    end

end

end)

add this to ur any resource u want, this script is not mine

will this script also disable the ai cops driving around the streets
i have dispatch for police turned off but the police cars still spawn at pd and police are seen cruising about. so will this script get rid of that

1 Like

We have this script in and Have been using it for some time in my other servers. For some reason the police cars are still spawning and sometimes on top of each other. We are using esx. Any suggestions?

same here. worked the first time i added it. on the next server restart they are all back.

Why does everyone do complicated and unoptimized things
Just do it :
SetMaxWantedLevel(0)