getVehicleNodeIsSwitchedOff
GET_VEHICLE_NODE_IS_SWITCHED_OFF0x4F5070AA58F69279The 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.
getVehicleNodeIsSwitchedOff(nodeID: number): booleangetVehicleNodeIsSwitchedOff(nodeID: integer): booleanUsage
JavaScript
const result = getVehicleNodeIsSwitchedOff(nodeID);Lua
local result = getVehicleNodeIsSwitchedOff(nodeID)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
nodeID | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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