setDistantCarsEnabled
SET_DISTANT_CARS_ENABLED0xF796359A959DF65DThe GTA V native SET_DISTANT_CARS_ENABLED of the VEHICLE namespace, as LS:MP client scripts call it: the global function setDistantCarsEnabled, in JavaScript and in Lua.
setDistantCarsEnabled(toggle: boolean): voidsetDistantCarsEnabled(toggle: boolean)Usage
JavaScript
setDistantCarsEnabled(toggle);Lua
setDistantCarsEnabled(toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
toggle | BOOL | boolean | boolean |
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.
Toggles to render distant vehicles. They may not be vehicles but images to look like vehicles.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_DISTANT_CARS_ENABLED(BOOL toggle)- Hash
0xF796359A959DF65D- Formerly
_DISPLAY_DISTANT_VEHICLES