Quick forum search found this.
This resource is several years old and no longer works unfortunately.
Maybe this native does the trick:
However I’m not too sure about that, the cars might also be placed on to the map as possible spawnpoints in which case this native does nothing.
Hello this removes all emergency services and removes the vehicles that spawn at the stations
Citizen.CreateThread(function()
while true do
Wait(0)
local playerLocalisation = GetEntityCoords(GetPlayerPed(-1))
for i = 1, 15 do
EnableDispatchService(i, false)
end
if GetPlayerWantedLevel(PlayerId()) ~= 0 then
SetPlayerWantedLevel(PlayerId(), 0, false)
SetPlayerWantedLevelNow(PlayerId(), false)
SetPoliceIgnorePlayer(PlayerId(), true)
SetDispatchCopsForPlayer(PlayerId(), false)
SetDitchPoliceModels()
end
ClearAreaOfCops(playerLocalisation.x, playerLocalisation.y, playerLocalisation.z, 400.0)
end
end)
I would like to point out that this code was given to me by a friend some time ago, like 1 or 2 years ago, so the credits don’t belong to me, but I can’t give them out correctly.
You dont actually need to call that every frame as far as I can see - put a Wait(1000) in it or similar to make it hog less resources
1 Like
Thanks for all your help guys!