Skip to main content

GET_NTH_CLOSEST_CAR_NODE_FAVOUR_DIRECTION

Game.GetNthClosestCarNodeFavourDirectionHash0x6F766824
Usage
local nthClosestCarNodeFavourDirection, nearestNodeCoorsX, nearestNodeCoorsY, nearestNodeCoorsZ, heading = Game.GetNthClosestCarNodeFavourDirection(x, y, z, faceX, faceY, faceZ, node)

Will return if can the closest car node, tries to return a heading which points the car in the right direction to reach FaceCoors.

Parameters

  • xnumberfloat
  • ynumberfloat
  • znumberfloat
  • faceXnumberfloat
  • faceYnumberfloat
  • faceZnumberfloat
  • nodeintegerint

Returns

  • nthClosestCarNodeFavourDirectionbooleanreturn value
  • nearestNodeCoorsXnumberVector3*
  • nearestNodeCoorsYnumberVector3*
  • nearestNodeCoorsZnumberVector3*
  • headingnumberfloat*
Original declaration
// 0x6F766824
bool GET_NTH_CLOSEST_CAR_NODE_FAVOUR_DIRECTION(float x, float y, float z, float faceX, float faceY, float faceZ, int node, Vector3* nearestNodeCoors, float* heading);