VehicleClient

setDistantCarsEnabled

SET_DISTANT_CARS_ENABLED0xF796359A959DF65D

The 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.

SignatureJavaScript
setDistantCarsEnabled(toggle: boolean): void
SignatureLua
setDistantCarsEnabled(toggle: boolean)

Usage

JavaScript
setDistantCarsEnabled(toggle);
Lua
setDistantCarsEnabled(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

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

Open in the interactive natives reference