Native referenceFiveM

GET_CLOSEST_VEHICLE_NODE_WITH_HEADING

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

Description: Same as GET_CLOSEST_VEHICLE_NODE, but with the node flag GCNF_GET_HEADING set, causing the native to also return the heading.

Parameters

  • x (float) — X coordinate
  • y (float) — Y coordinate
  • z (float) — Z coordinate
  • 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 (int) — How far apart the Z coords have to be before zMeasureMult kicks in
Back to PATHFIND