Log In
Sign Up
Hand-checkedUnofficial name

INVENTORY::_INVENTORY_GET_INVENTORY_ID_FROM_PED

0x5C09919CEC2DCB5D ·RVA 0x03E8A2D0

Signature

int _INVENTORY_GET_INVENTORY_ID_FROM_PED(Ped ped);

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

Parameters 1

#TypeNameNotes
0Pedped –

Returns

int

Notes

  • The ped's inventory ID, for the other INVENTORY natives, or -1 if the ped has no inventory (or doesn't exist). The game looks the ped up and asks its inventory component for the ID; the value isn't fixed, so don't hard-code one. Read from the game code.

Call it

// INVENTORY::_INVENTORY_GET_INVENTORY_ID_FROM_PED
auto result = invoke<int>(0x5C09919CEC2DCB5D, ped);

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.