isVehicleNodeIdValid
IS_VEHICLE_NODE_ID_VALID0x1EAF30FCFBF5AF74The GTA V native IS_VEHICLE_NODE_ID_VALID of the PATHFIND namespace, as LS:MP client scripts call it: the global function isVehicleNodeIdValid, in JavaScript and in Lua.
isVehicleNodeIdValid(vehicleNodeId: number): booleanisVehicleNodeIdValid(vehicleNodeId: integer): booleanUsage
JavaScript
const result = isVehicleNodeIdValid(vehicleNodeId);Lua
local result = isVehicleNodeIdValid(vehicleNodeId)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicleNodeId | 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 if the id is non zero.
Reference
- Namespace
- Pathfinding PATHFIND
- In the game
BOOL IS_VEHICLE_NODE_ID_VALID(int vehicleNodeId)- Hash
0x1EAF30FCFBF5AF74