getVehicleNodeIsGpsAllowed
GET_VEHICLE_NODE_IS_GPS_ALLOWED0xA2AE5C478B96E3B6The 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.
getVehicleNodeIsGpsAllowed(nodeID: number): booleangetVehicleNodeIsGpsAllowed(nodeID: integer): booleanUsage
JavaScript
const result = getVehicleNodeIsGpsAllowed(nodeID);Lua
local result = getVehicleNodeIsGpsAllowed(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 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