RDR3 match
PATH::GET_RANDOM_VEHICLE_NODE
0xBF48C5826C1F247B ·RVA 0x0445E9E0
Signature
BOOL GET_RANDOM_VEHICLE_NODE(
Vector3 pos,
float radius,
int minLanes,
BOOL avoidDeadEnds,
BOOL avoidHighways,
Vector3* outPosition,
int* nodeId
);
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 | float | radius |
– |
| 2 | int | minLanes |
the game doesn't read it. |
| 3 | BOOL | avoidDeadEnds |
– |
| 4 | BOOL | avoidHighways |
the game doesn't read it. |
| 5 | Vector3* | outPosition |
– |
| 6 | int* | nodeId |
– |
Returns
BOOL
Call it
// PATH::GET_RANDOM_VEHICLE_NODE
auto result = invoke<BOOL>(0xBF48C5826C1F247B, pos, radius, minLanes, avoidDeadEnds, avoidHighways, &outPosition, &nodeId);// PATH::GET_RANDOM_VEHICLE_NODE
bool result = Function.Call<bool>((Hash)0xBF48C5826C1F247B, pos, radius, minLanes, avoidDeadEnds, avoidHighways, outPosition, nodeId);-- PATH::GET_RANDOM_VEHICLE_NODE
local result = Citizen.InvokeNative(0xBF48C5826C1F247B, pos, radius, minLanes, avoidDeadEnds, avoidHighways, outPosition, nodeId)// PATH::GET_RANDOM_VEHICLE_NODE
const result = Citizen.invokeNative("0xBF48C5826C1F247B", pos, radius, minLanes, avoidDeadEnds, avoidHighways, outPosition, nodeId);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.