The Lab
PATH native

GET_NTH_CLOSEST_VEHICLE_NODE_ID

returns int7 paramsbuild 1207

Returns the id of the Nth closest vehicle node to the given coordinates.

Signature

C
int GET_NTH_CLOSEST_VEHICLE_NODE_ID(float x, float y, float z, int nth, int nodetype, float p5, float p6); // 0x116443008E5CEFC3 b1207

Parameters

#NameType
1xfloat
2yfloat
3zfloat
4nthint
5nodetypeint
6p5float
7p6float

Facts

Facts about GET_NTH_CLOSEST_VEHICLE_NODE_ID
Name
GET_NTH_CLOSEST_VEHICLE_NODE_ID
Hash
0x116443008E5CEFC3
Namespace
Returns
int
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x116443008E5CEFC3, -- GET_NTH_CLOSEST_VEHICLE_NODE_ID
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0, -- int nth
  0, -- int nodetype
  0.0, -- float p5
  0.0, -- float p6
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x116443008E5CEFC3", // GET_NTH_CLOSEST_VEHICLE_NODE_ID
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0, // int nth
  0, // int nodetype
  0.0, // float p5
  0.0, // float p6
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x116443008E5CEFC3, // GET_NTH_CLOSEST_VEHICLE_NODE_ID
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0, // int nth
  0, // int nodetype
  0.0f, // float p5
  0.0f // float p6
);
All PATH natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.