Skip to main content

GET_NTH_CLOSEST_CAR_NODE

Game.GetNthClosestCarNodeHash0x740912C2
Usage
local nthClosestCarNode, outX, outY, outZ = Game.GetNthClosestCarNode(x, y, z, node)

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

Parameters

  • xnumberfloat
  • ynumberfloat
  • znumberfloat
  • nodeintegerint

Returns

  • nthClosestCarNodebooleanreturn value
  • outXnumberfloat*
  • outYnumberfloat*
  • outZnumberfloat*
Original declaration
// 0x740912C2
bool GET_NTH_CLOSEST_CAR_NODE(float x, float y, float z, int node, float* outX, float* outY, float* outZ);