Log In
Sign Up
RDR3 matchUnofficial name

WEAPON::_GET_BEST_PED_WEAPON_IN_GROUP

0x6718391760986D62 ·RVA 0x04A81FD0

Signature

Hash _GET_BEST_PED_WEAPON_IN_GROUP(
    Ped ped,
    Hash weaponGroup,
    BOOL p2,
    BOOL p3
);

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
0Pedped –
1HashweaponGroup –
2BOOLp2 –
3BOOLp3 –

Returns

Hash

Call it

// WEAPON::_GET_BEST_PED_WEAPON_IN_GROUP
auto result = invoke<Hash>(0x6718391760986D62, ped, weaponGroup, p2, p3);

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.