VehicleClient

setVehicleDensityMultiplierThisFrame

SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME0x245A6883D966D537

The GTA V native SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleDensityMultiplierThisFrame, in JavaScript and in Lua.

SignatureJavaScript
setVehicleDensityMultiplierThisFrame(multiplier: number): void
SignatureLua
setVehicleDensityMultiplierThisFrame(multiplier: number)

Usage

JavaScript
setVehicleDensityMultiplierThisFrame(multiplier);
Lua
setVehicleDensityMultiplierThisFrame(multiplier)

Parameters

ParameterTypeJavaScriptLua
multiplierfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Use this native inside a looped function.
Values:
- 0.0 = no vehicles on streets
- 1.0 = normal vehicles on streets

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME(float multiplier)
Hash
0x245A6883D966D537

Open in the interactive natives reference