NPCs in an Specific area

Hey,
How can i remove the Titans and lazers at the Military Base?

write a blacklist table of those vehicles and delete entity if it exists

And how?

CreateThread(function()
	while true do
		SetParkedVehicleDensityMultiplierThisFrame(1.0)
		SetVehicleDensityMultiplierThisFrame(1.0)
		SetRandomVehicleDensityMultiplierThisFrame(1.0)
		SetPedDensityMultiplierThisFrame(1.0)
		SetScenarioPedDensityMultiplierThisFrame(1.0, 1.0)
		Wait(0)
	end
end)

Add this to a client lua file

And how can i define the area?

wait wrong post kmt 1 sec let me get a snippet

local BlacklistedVehicles = {
    [`SULTAN`] = true,
}

AddEventHandler("entityCreating", function(handle)
    local entityModel = GetEntityModel(handle)

    if BlacklistedVehicles[entityModel] then
        CancelEvent()
    end
end)

okay?

And how can i define the area?

you can write a function for a distance check or you can use a zone handler