Log In
Sign Up
RDR3 match

OBJECT::GET_CLOSEST_OBJECT_OF_TYPE

0xB6C9BC961EBC05DD ·RVA 0x04C132F0

Signature

Object GET_CLOSEST_OBJECT_OF_TYPE(
    Vector3 pos,
    float radius,
    Hash64 modelHash,
    BOOL missionScriptObject,
    BOOL scriptHostObject,
    BOOL networkObject
);

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

Parameters 6

#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).
3BOOLmissionScriptObject the game doesn't read it.
4BOOLscriptHostObject –
5BOOLnetworkObject the game doesn't read it.

Returns

Object

Call it

// OBJECT::GET_CLOSEST_OBJECT_OF_TYPE
auto result = invoke<Object>(0xB6C9BC961EBC05DD, pos, radius, modelHash, missionScriptObject, scriptHostObject, networkObject);

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.