Skip to main content

GET_NTH_CLOSEST_CAR_NODE_WITH_HEADING

Game.GetNthClosestCarNodeWithHeadingHash0x1F6B3FF0
Usage
local nthClosestCarNodeWithHeading, nodeX, nodeY, nodeZ, heading = Game.GetNthClosestCarNodeWithHeading(x, y, z, nodeNumber)

Will return if can the nth (n = 1 being closest) closest car node with a heading, to a coord.

Parameters

  • xnumberfloat
  • ynumberfloat
  • znumberfloat
  • nodeNumberintegerint

Returns

  • nthClosestCarNodeWithHeadingbooleanreturn value
  • nodeXnumberfloat*
  • nodeYnumberfloat*
  • nodeZnumberfloat*
  • headingnumberfloat*
Original declaration
// 0x1F6B3FF0
bool GET_NTH_CLOSEST_CAR_NODE_WITH_HEADING(float x, float y, float z, int nodeNumber, float* nodeX, float* nodeY, float* nodeZ, float* heading);