getVehicleNodeIsGpsAllowed

GET_VEHICLE_NODE_IS_GPS_ALLOWED0xA2AE5C478B96E3B6

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

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

Usage

JavaScript
const result = getVehicleNodeIsGpsAllowed(nodeID);
Lua
local result = getVehicleNodeIsGpsAllowed(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 false for nodes that aren't used for GPS routes.
Example:
Nodes in Fort Zancudo and LSIA are false

Reference

Namespace
Pathfinding PATHFIND
In the game
BOOL GET_VEHICLE_NODE_IS_GPS_ALLOWED(int nodeID)
Hash
0xA2AE5C478B96E3B6
Formerly
_GET_SUPPORTS_GPS_ROUTE_FLAG

Open in the interactive natives reference