Native referenceFiveM

GET_NTH_CLOSEST_VEHICLE_NODE_FAVOUR_DIRECTION

0x45905BE8654AE067 PATHFIND
FUNCTION SIGNATURE
BOOL GET_NTH_CLOSEST_VEHICLE_NODE_FAVOUR_DIRECTION(float x, float y, float z, float desiredX, float desiredY, float desiredZ, int nthClosest, Vector3* outPosition, float* outHeading, int nodeFlags, float zMeasureMult, float zTolerance);
Property Value
Native Name GET_NTH_CLOSEST_VEHICLE_NODE_FAVOUR_DIRECTION
Hash 0x45905BE8654AE067
Return Type BOOL
Parameters x (float), y (float), z (float), desiredX (float), desiredY (float), desiredZ (float), nthClosest (int), outPosition (Vector3*), outHeading (float*), nodeFlags (int), zMeasureMult (float), zTolerance (float)

Description: Like GET_CLOSEST_VEHICLE_NODE_WITH_HEADING, but returns the nth closest node instead of the first.

Parameters

  • x (float) — X coordinate
  • y (float) — Y coordinate
  • z (float) — Z coordinate
  • desiredX (float) — The X direction to favour
  • desiredY (float) — The Y direction to favour
  • desiredZ (float) — The Z direction to favour
  • 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
  • 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