Remove Parked Emergency Vehicles

This is a resource that can remove parked police vehicles, firetrucks, ambulances, and civilian vehicles around stations and hospitals depending on which files you download (read the file names).

Installation Instructions (From previous release):

Downloads:
removeparkedambulances.zip (80.6 KB)
removeparkedfiretrucks.zip (108.5 KB)
removeparkedpolicecars.zip (194.2 KB)

7 Likes

nice work bro.

why didn’t make one script bro ?

1 Like

nice work. Can you remove parked cars in parking garage as well?

Thank you, and in case a server owner only wants to remove one agency. For example, a server may only have law enforcement so why remove firetrucks and ambulances from spawning?

1 Like

In Case a Server only wants one you can simply make a Config.
I have just one quick question, is this a script to fully remove the firetrucks, ambulances … or is it just to remove the parked ones? if you want to fully deactivate them i recommend usind this sort of code:

Citizen.CreateThread(function()
        while true do
            Citizen.Wait(0)
            -- These natives have to be called every frame.
            for i = 1, 12 do --you can change this to your needs (here is the list = https://docs.fivem.net/natives/?_0xDC0F817884CDD856)
                EnableDispatchService(i, false) --remove this if you want to have NPC Ambulance, Firefighters ...
Citizen.CreateThread(function()
  while true do
            Citizen.Wait(0)
            -- These natives have to be called every frame.
            for i = 1, 12 do --
                EnableDispatchService(i, false) --remove this if you want to have NPC Ambulance, Firefighters ...
            end
            SetVehicleDensityMultiplierThisFrame(1.0) --If you want just a few driving NPCs change the value (I recommend 0.5 ^^)
            SetPedDensityMultiplierThisFrame(1.0) --If you want just a few walking NPCs change the value (I recommend 0.5 ^^)
            SetRandomVehicleDensityMultiplierThisFrame(2.0) -- set random vehicles (car scenarios / cars driving off from a parking spot etc.) to 0
            SetParkedVehicleDensityMultiplierThisFrame(1.0) -- set random parked vehicles (parked car scenarios) to 0
            SetScenarioPedDensityMultiplierThisFrame(2.0, 1.0) -- set random npc/ai peds or scenario peds to 0
            SetGarbageTrucks(true) -- Stop garbage trucks from randomly spawning
            SetRandomBoats(true) -- Stop random boats from spawning in the water.
            SetCreateRandomCops(false) -- disable random cops walking/driving around.
            SetCreateRandomCopsNotOnScenarios(false) -- stop random cops (not in a scenario) from spawning.
            SetCreateRandomCopsOnScenarios(false) -- stop random cops (in a scenario) from spawning.
            SetPlayerWantedLevel(PlayerId(), 0, false)
            SetPlayerWantedLevelNow(PlayerId(), false)
            SetPlayerWantedLevelNoDrop(PlayerId(), 0, false)
            
            local x,y,z = table.unpack(GetEntityCoords(PlayerPedId()))
            ClearAreaOfVehicles(x, y, z, 1000, false, false, false, false, false)
            RemoveVehiclesFromGeneratorsInArea(x - 500.0, y - 500.0, z - 500.0, x + 500.0, y + 500.0, z + 500.0);
        end
    end)
end

like i said above you can add a config and let the others customize the script to their needs. If you need help dont mind to ask :wink:

Have a nice Day ^^

This only removes the parked ones.

Ah okay, then ignore it ^^

None of the resources work for me. It says it wont start because it doesnt support the current game (gta5).

You just have to edit the resource manifest.

Ive tried editing… doesn’t work.
[ resources] Warning: Resource removeparkedambulances does not support the current game (gta5).

Great script, is there one for peds or just vehicles?

Doesn’t start

For anyone experiencing this error:
Warning: Resource removeparkedambulances does not support the current game (gta5).

Change the following in the fxmanifest.lua
Replace games 'gta5' with game 'gta5'

2 Likes

same here

got a fix for that at the bottom?