Log In
Sign Up
RDR3 match

VEHICLE::GET_CLOSEST_VEHICLE

0xC9BAE7E4AD0BA2FC ·RVA 0x04A824C0

Signature

Vehicle GET_CLOSEST_VEHICLE(
    Vector3 pos,
    float radius,
    Hash64 modelHash,
    int flags
);

The scripts pass 5 values to this native; the decoded signature lists 4 (arguments the game doesn't read are left out).

Parameters 4

#TypeNameNotes
0Vector3pos –
1floatradius –
2Hash64modelHash RDR3 takes a Hash; GTA VI passes a 64-bit hash (the game reads 64 bits, and the scripts pass a value, not an address).
3intflags –

Returns

Vehicle

Call it

// VEHICLE::GET_CLOSEST_VEHICLE
auto result = invoke<Vehicle>(0xC9BAE7E4AD0BA2FC, pos, radius, modelHash, flags);

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.