setVehicleDensityMultiplierThisFrame
SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME0x245A6883D966D537The 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.
setVehicleDensityMultiplierThisFrame(multiplier: number): voidsetVehicleDensityMultiplierThisFrame(multiplier: number)Usage
JavaScript
setVehicleDensityMultiplierThisFrame(multiplier);Lua
setVehicleDensityMultiplierThisFrame(multiplier)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
multiplier | float | number | number |
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