Using these natives won’t disable the parked vehicles spawns.
SetParkedVehicleDensityMultiplierThisFrame(0.0)
SetNumberOfParkedVehicles(0)
-
Client - Beta | FXServer version - 5848 Linux.
-
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.
-
What actually happens: Parked vehicles will still spawn normally.
-
Category of bug (eg. client, server, weapons, peds, native): client/native.
-
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)