Log In
Sign Up
Game codeUnofficial name

WEAPON::_GET_BEST_PED_WEAPON_IN_INVENTORY

0xEB3717478467AFF9 ·RVA 0x04A82110

Signature

void _GET_BEST_PED_WEAPON_IN_INVENTORY(
    Ped ped,
    BOOL p1,
    Any* guidPrimary,
    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 –
1BOOLp1 RDR3 doesn't give a type; the game reads it as a true/false value.
2Any*guidPrimary –
3BOOLp3 –

Returns

void Nothing.

Notes

  • Names from RDR3; types from the game code, which differs from RDR3's signature:
  • p3 is not in RDR3's signature; the game reads it as a true/false value.

Call it

// WEAPON::_GET_BEST_PED_WEAPON_IN_INVENTORY
invoke<Void>(0xEB3717478467AFF9, ped, p1, &guidPrimary, 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.