Log In
Sign Up
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

#TypeNameNotes
0Vector3pos –
1floatradius –
2intminLanes the game doesn't read it.
3BOOLavoidDeadEnds –
4BOOLavoidHighways the game doesn't read it.
5Vector3*outPosition –
6int*nodeId –

Returns

BOOL

Call it

// PATH::GET_RANDOM_VEHICLE_NODE
auto result = invoke<BOOL>(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.