Skip to main content

GET_NTH_CLOSEST_CAR_NODE_WITH_HEADING_ON_ISLAND

Game.GetNthClosestCarNodeWithHeadingOnIslandHash0x59DB1AD1
Usage
local nthClosestCarNodeWithHeadingOnIsland, nearestNodeX, nearestNodeY, nearestNodeZ, returnHeading, numLanes = Game.GetNthClosestCarNodeWithHeadingOnIsland(x, y, z, nodeNum, island)

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

Parameters

  • xnumberfloat
  • ynumberfloat
  • znumberfloat
  • nodeNumintegerint
  • islandintegerint

Returns

  • nthClosestCarNodeWithHeadingOnIslandbooleanreturn value
  • nearestNodeXnumberfloat*
  • nearestNodeYnumberfloat*
  • nearestNodeZnumberfloat*
  • returnHeadingnumberfloat*
  • numLanesintegerint*
Original declaration
// 0x59DB1AD1
bool GET_NTH_CLOSEST_CAR_NODE_WITH_HEADING_ON_ISLAND(float x, float y, float z, int nodeNum, int island, float* nearestNodeX, float* nearestNodeY, float* nearestNodeZ, float* returnHeading, int* numLanes);