VehicleClientNot in this build

setPlaneAvoidsOthers

_SET_PLANE_AVOIDS_OTHERS0xBAFB99B304BC52A7

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

SignatureJavaScript
setPlaneAvoidsOthers(vehicle: Vehicle, toggle: boolean): void
SignatureLua
setPlaneAvoidsOthers(vehicle: Vehicle, toggle: boolean)
⚠
Not in this game build

The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.

Usage

JavaScript
setPlaneAvoidsOthers(vehicle, toggle);
Lua
setPlaneAvoidsOthers(vehicle, toggle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Vehicle VEHICLE
In the game
void _SET_PLANE_AVOIDS_OTHERS(Vehicle vehicle, BOOL toggle)
Hash
0xBAFB99B304BC52A7
Introduced
Game build 3407 legacy numbering

Open in the interactive natives reference