RDR3 match
PATH::GET_NTH_CLOSEST_VEHICLE_NODE_ID_WITH_HEADING
0x58088992BEEB1557 ·RVA 0x0445E500
Signature
int GET_NTH_CLOSEST_VEHICLE_NODE_ID_WITH_HEADING(
Vector3 pos,
int nthClosest,
float* returnHeading,
int* returnNumLanes,
int nodeFlags,
float zMeasureMult,
float zTolerance
);
The scripts pass 8 values to this native; the decoded signature lists 7 (arguments the game doesn't read are left out).
Parameters 7
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Vector3 | pos |
– |
| 1 | int | nthClosest |
– |
| 2 | float* | returnHeading |
– |
| 3 | int* | returnNumLanes |
– |
| 4 | int | nodeFlags |
– |
| 5 | float | zMeasureMult |
the game doesn't read it. |
| 6 | float | zTolerance |
the game doesn't read it. |
Returns
int
Call it
// PATH::GET_NTH_CLOSEST_VEHICLE_NODE_ID_WITH_HEADING
auto result = invoke<int>(0x58088992BEEB1557, pos, nthClosest, &returnHeading, &returnNumLanes, nodeFlags, zMeasureMult, zTolerance);// PATH::GET_NTH_CLOSEST_VEHICLE_NODE_ID_WITH_HEADING
int result = Function.Call<int>((Hash)0x58088992BEEB1557, pos, nthClosest, returnHeading, returnNumLanes, nodeFlags, zMeasureMult, zTolerance);-- PATH::GET_NTH_CLOSEST_VEHICLE_NODE_ID_WITH_HEADING
local result = Citizen.InvokeNative(0x58088992BEEB1557, pos, nthClosest, returnHeading, returnNumLanes, nodeFlags, zMeasureMult, zTolerance)// PATH::GET_NTH_CLOSEST_VEHICLE_NODE_ID_WITH_HEADING
const result = Citizen.invokeNative("0x58088992BEEB1557", pos, nthClosest, returnHeading, returnNumLanes, nodeFlags, zMeasureMult, zTolerance);Generic call-by-hash templates in the style of the common GTA V / RDR2 script frameworks. Adapt the types to your tooling.
Improve this page
Know what this native does, a better name, or the real parameter types? Suggest an edit. A moderator reviews every suggestion, and approved edits credit you here.