Removing the NPC police

Please tell me how to remove the police from the server the NPC completely?

There is a never wanted script out there, that will make it so the player won’t be wanted. There really is no way to remove the police altogether.

how to remove them, which would not spawn so many? maybe there is a file where t traffic, you can do less?

I think vRP does this you might want to check in their files how they do it.

you can easly remove emergency untit by using this native : ENABLE_DISPATCH_SERVICE(int dispatchService, BOOL toggle)

list of service : DT_PoliceAutomobile = 1, DT_PoliceHelicopter = 2, DT_FireDepartment = 3, DT_SwatAutomobile = 4, DT_AmbulanceDepartment = 5, DT_PoliceRiders = 6, DT_PoliceVehicleRequest = 7, DT_PoliceRoadBlock = 8, DT_PoliceAutomobileWaitPulledOver = 9, DT_PoliceAutomobileWaitCruising = 10, DT_Gangs = 11, DT_SwatHelicopter = 12, DT_PoliceBoat = 13, DT_ArmyVehicle = 14, DT_BikerBackup = 15

for regulate how much vehicle are you can use this :

SET_RANDOM_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME(float multiplier)

SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME(float multiplier)

good luck

1 Like

So ?

(function()
ENABLE_DISPATCH_SERVICE(1, false)
end)

yes with that you will disable the police car when a dispatch is call

but it’s a native function you have to call it properly in lua

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

1 Like

still a lot of police npc, can someone tell me how to reduce urban traffic npc ?

This only disable dispatch NPC like Ambulance, Cops if we are wanted etc … Not remove NPC at Police Station

and where in the vrp is to find to remove the NPC police which file

i never use Vrp and don’t know about script in it.