Jump to content

_COUNT_INVENTORY_ITEMS


Native Details

  • Name_COUNT_INVENTORY_ITEMS
  • NamespaceINVENTORY
  • Native Hash0xE787F05DFC977BDE
  • TypeAny
  • First seen version1207

Native Parameters

  • Parameter 0int inventoryId
    INVENTORY::_INVENTORY_GET_INVENTORY_ID_FROM_PED(player)
  • Parameter 1int itemId
    Example: joaat("consumable_herb_evergreen_huckleberry"). a list can be found here: https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures/inventory_items
  • Parameter 2BOOL p2
    Unknown, usually 0 in R* scripts.

DESCRIPTION

counts how many items of a certain type are available in an inventory.


CODE EXAMPLE

int itemId = MISC::GET_HASH_KEY("consumable_herb_evergreen_huckleberry");
int count = INVENTORY::_0xE787F05DFC977BDE(INVENTORY::_INVENTORY_GET_INVENTORY_ID_FROM_PED(PLAYER::PLAYER_PED_ID()), itemId, 0);

User Feedback

Recommended Comments

There are no comments to display.



Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Red Dead Redemption 2 Native Database by www.mod-rdr.com, includes contributions by gudmunduro and alloc8or.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...