Disabling parked vehicles spawns won't work

Using these natives won’t disable the parked vehicles spawns.

SetParkedVehicleDensityMultiplierThisFrame(0.0)
SetNumberOfParkedVehicles(0)
  1. Client - Beta | FXServer version - 5848 Linux.

  2. What you expected to happen: When using the natives I’ve mentioned before on a function that being called every frame should disable the parked vehicles from being spawned.

  3. What actually happens: Parked vehicles will still spawn normally.

  4. Category of bug (eg. client, server, weapons, peds, native): client/native.

  5. Reproducible steps, preferably with example script(s):

  • Default server.

  • Using this client script:

CreateThread(function ()
    print("Started")
    while true do
        Wait(0)
        SetParkedVehicleDensityMultiplierThisFrame(0.0)
        SetNumberOfParkedVehicles(0)
    end 
end)

Are you sure what you’re seeing is ‘parked’ vehicles (from cargens) and not stationary scenario vehicles?

1 Like