Native referenceRedM

GET_NTH_CLOSEST_VEHICLE_NODE_ID_WITH_HEADING

0x4114EAA8A7F7766D PATHFIND
FUNCTION SIGNATURE
int GET_NTH_CLOSEST_VEHICLE_NODE_ID_WITH_HEADING(`x` (float), `y` (float), `z` (float), `nthClosest` (int), `returnHeading` (float*), `returnNumLanes` (int*), `nodeFlags` (int), `zMeasureMult` (float), `zTolerance` (float));

Description: Returns the nth closest vehicle node with a heading to a coord

Property Value
Native Name GET_NTH_CLOSEST_VEHICLE_NODE_ID_WITH_HEADING
Hash 0x4114EAA8A7F7766D
Return Type int
Build 1207
Parameters x (float), y (float), z (float), nthClosest (int), returnHeading (float*), returnNumLanes (int*), nodeFlags (int), zMeasureMult (float), zTolerance (float)

Parameters

  • x (float)
  • y (float)
  • z (float)
  • nthClosest (int)
  • returnHeading (float*)
  • returnNumLanes (int*)
  • nodeFlags (int)
  • zMeasureMult (float)
  • zTolerance (float)

Usage

Lua (Direct):

local result = GetNthClosestVehicleNodeIdWithHeading(x, y, z, nthClosest, returnHeading, returnNumLanes, nodeFlags, zMeasureMult, zTolerance)

Lua (Hash):

local result = Citizen.InvokeNative(0x4114EAA8A7F7766D, x, y, z, nthClosest, returnHeading, returnNumLanes, nodeFlags, zMeasureMult, zTolerance)

Back to PATHFIND