Native referenceFiveM

GET_NTH_CLOSEST_VEHICLE_NODE_WITH_HEADING

0x80CA6A8B6C094CC4 PATHFIND
FUNCTION SIGNATURE
BOOL GET_NTH_CLOSEST_VEHICLE_NODE_WITH_HEADING(float x, float y, float z, int nthClosest, Vector3* outPosition, float* outHeading, int* totalLanes, int nodeFlags, float zMeasureMult, float zTolerance);
Property Value
Native Name GET_NTH_CLOSEST_VEHICLE_NODE_WITH_HEADING
Hash 0x80CA6A8B6C094CC4
Return Type BOOL
Parameters x (float), y (float), z (float), nthClosest (int), outPosition (Vector3*), outHeading (float*), totalLanes (int*), nodeFlags (int), zMeasureMult (float), zTolerance (float)

Description: Get the nth closest vehicle node with its heading and total lane count. If you need specific forward and backward lane counts use GET_CLOSEST_ROAD.

Parameters

  • x (float) — X coordinate
  • y (float) — Y coordinate
  • z (float) — Z coordinate
  • nthClosest (int) — The index of the node to return
  • outPosition (Vector3*) — Pointer to the found nodes coords
  • outHeading (float*) — Pointer to the found nodes heading
  • totalLanes (int*) — Pointer to the total lanes (forward + backward) of the found node
  • nodeFlags (int) — Node flags, see GET_CLOSEST_VEHICLE_NODE
  • zMeasureMult (float) — How strongly the difference in the Z direction should be weighted
  • zTolerance (float) — How far apart the Z coords have to be before zMeasureMult kicks in
Back to PATHFIND