getVehicleNodeIsSwitchedOff

GET_VEHICLE_NODE_IS_SWITCHED_OFF0x4F5070AA58F69279

The GTA V native GET_VEHICLE_NODE_IS_SWITCHED_OFF of the PATHFIND namespace, as LS:MP client scripts call it: the global function getVehicleNodeIsSwitchedOff, in JavaScript and in Lua.

SignatureJavaScript
getVehicleNodeIsSwitchedOff(nodeID: number): boolean
SignatureLua
getVehicleNodeIsSwitchedOff(nodeID: integer): boolean

Usage

JavaScript
const result = getVehicleNodeIsSwitchedOff(nodeID);
Lua
local result = getVehicleNodeIsSwitchedOff(nodeID)

Parameters

ParameterTypeJavaScriptLua
nodeIDintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

Returns true when the node is Offroad. Alleys, some dirt roads, and carparks return true.
Normal roads where plenty of Peds spawn will return false

Reference

Namespace
Pathfinding PATHFIND
In the game
BOOL GET_VEHICLE_NODE_IS_SWITCHED_OFF(int nodeID)
Hash
0x4F5070AA58F69279
Formerly
_GET_IS_SLOW_ROAD_FLAG

Open in the interactive natives reference