Log In
Sign Up
RDR3 match

WEAPON::HAS_PED_GOT_WEAPON

0x770BD74372134FD0 ·RVA 0x04A881D0

Signature

BOOL HAS_PED_GOT_WEAPON(
    Ped ped,
    Hash weaponHash,
    int p2,
    BOOL onlyCheckPlayerInventory
);

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 –
1HashweaponHash –
2intp2 –
3BOOLonlyCheckPlayerInventory –

Returns

BOOL

Call it

// WEAPON::HAS_PED_GOT_WEAPON
auto result = invoke<BOOL>(0x770BD74372134FD0, ped, weaponHash, p2, onlyCheckPlayerInventory);

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.