isVehicleNodeIdValid

IS_VEHICLE_NODE_ID_VALID0x1EAF30FCFBF5AF74

The 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.

SignatureJavaScript
isVehicleNodeIdValid(vehicleNodeId: number): boolean
SignatureLua
isVehicleNodeIdValid(vehicleNodeId: integer): boolean

Usage

JavaScript
const result = isVehicleNodeIdValid(vehicleNodeId);
Lua
local result = isVehicleNodeIdValid(vehicleNodeId)

Parameters

ParameterTypeJavaScriptLua
vehicleNodeIdintnumberinteger

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 if the id is non zero.

Reference

Namespace
Pathfinding PATHFIND
In the game
BOOL IS_VEHICLE_NODE_ID_VALID(int vehicleNodeId)
Hash
0x1EAF30FCFBF5AF74

Open in the interactive natives reference