Remove all NPC cop and military from server



I’m trying to remove all NPC cop and military from my server, I’m trying to blacklisted all of them :

pedblacklist = {

I’m stil seeing many cop in city :confused:

Disable police cars/pnj


I’ve installed a simple “NeverWanted” script on my server and all the cops are gone,

Try that and let me know if it works with you


I use ClearAreaOfCops()


Is corect ?

  while true do
    local playerPed = GetPlayerPed(-1)
    local playerLocalisation = GetEntityCoords(playerPed)
    ClearAreaOfCops(playerLocalisation.x, playerLocalisation.y, playerLocalisation.z, 400.0)


but ClearAreaOfCops always clear the els vehicle… so which mean… if you have a command to spawn police car… you’ll not able to see it… becuz ClearAreaOfCops delete the the vehicle in this loop. so no more els car


So, how to do ? It’s impossible ?



This isn’t the thing… It’s for disabling specific models when ScriptHook is not disabled…
It only goes for the specific player model not any AI’s, I guess…