inventory
Methods
_inventory_get_inventory_id_from_ped
Returns a unique inventory ID for this ped. For the local player ped, it is an eInventories value. For other peds, it is the inventory address casted to unsigned int.
enum eInventories { INVENTORY_INVALID, INVENTORY_SP_PLAYER, INVENTORY_MP_PLAYER, INVENTORY_MP_MISSION, INVENTORY_SECOND_SCREEN, INVENTORY_SP_BACKUP, INVENTORY_SP_SNAPSHOT, INVENTORY_0xDE2AE452, INVENTORY_0x399D9B3A, INVENTORY_0x4BD43FA7, INVENTORY_0x9529D251, INVENTORY_0xA75776AC, INVENTORY_MAX_ID = 11, INVENTORY_IDS_COUNT };
_get_item_role_max_level_count
_get_item_slot_max_count
_0x112bca290d2eb53c
Only used in R* SP Scripts
_0x46743bbfedbc859e
eInventoryItem: CLOTHING_FANCY_SUIT, CLOTHING_GUNSLINGER_OUTFIT, etc. Only used in R* SP Scripts
_inventory_set_inventory_item_in_use
Only works on CClothingItem
_inventory_get_inventory_item_in_use
_inventory_set_inventory_item_hidden
Used with CClothingItem
_inventory_set_inventory_item_hidden_2
Used with CSatchelItem, R* Script usage: fisihing_core
_inventory_get_inventory_item_hidden
_inventory_get_inventory_item_is_animal_pelt
_inventory_get_inventory_item_description_hash
_inventory_is_inventory_item_flag_enabled
flag: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ItemDatabaseItemFlags 2097152 (is item read?), 8388608 (is item sent/received/mailable?), 16777216 (is item consumable?)
_inventory_get_is_inventory_item_sound_valid
_inventory_get_inventory_item_sound
soundType: see 0x2BAE4880DCDD560B Returns item Hash to be used with _IS_SCRIPTED_AUDIO_CUSTOM and _PLAY_SOUND_FROM_ITEM (p0)
_inventory_get_inventory_item_inspection_info
_inventory_get_inventory_item_weapon_copy_id
Returns CopyID
_inventory_are_local_changes_allowed
inventoryId: see _INVENTORY_GET_PED_INVENTORY_ID
_inventory_is_guid_valid
_inventory_compare_guids
inventory_get_guid_from_itemid
_0x5d6182f3bce1333b
removeReason: REMOVE_REASON_DEFAULT (eRemoveItemReason) Example: INVENTORY::_0x5D6182F3BCE1333B(1, joaat("REMOVE_REASON_DEFAULT")); -> clears weapon wheel Only used in R* SP Scripts
inventory_get_inventory_item
_inventory_get_full_inventory_item_data
_inventory_get_inventory_item_child
_inventory_add_item_with_guid
inventoryItemSlotHash: https://pastebin.com/P6fyr3vr
_inventory_update_inventory_item
Getter: _INVENTORY_GET_FULL_INVENTORY_ITEM_DATA
_inventory_remove_inventory_item_with_guid
_inventory_remove_inventory_item_with_itemid
_inventory_move_inventory_item
guid1: old parent GUID guid2: new parent GUID guid3: new item GUID (out param)
_inventory_swap_inventory_item
_inventory_create_item_collection
filterName (collections): "ALL", "ALL SATCHEL", "ALL HORSES", "ALL COACHES", "ALL MOUNTS", "ALL CLOTHING", "ALL WEAPONS", "ALL SATCHEL EXCLUDING CLOTHING", "ALL EXCLUDING CLOTHING" slotId: -1591664384 p3: outCollectionSize (?) Returns collectionId
_inventory_create_item_collection_with_filter
_inventory_get_item_from_collection_index
collectionId is < outCollectionSize
_inventory_release_item_collection
Max num of collections is 5, so release your unused ones.
_inventory_equip_item_with_guid
_inventory_get_inventory_item_equipped_in_slot_by_ref
_inventory_does_item_own_equipment
_0xd08685ba892dbfab
Params: p3 returns an int between 0 and 20 (?) Only used in R* SP Scripts
_0x0349404a22736740
Params: p0 is only 0 or 1 Only used in R* SP Scripts
_inventory_set_inventory_item_weather_effectiveness
OWE_INVALID = -1, OWE_GOOD_IN_HOT OWE_GOOD_IN_NONE OWE_GOOD_IN_COLD OWE_GOOD_IN_ALL
_inventory_disable_item
Example: (1, WEAPON_REVOLVER_CATTLEMAN, 0) - disables cattleman revolver on weapon wheel
_inventory_enable_item
_inventory_is_inventory_item_equipped
Alternative Name: _INVENTORY_IS_ITEM_DISABLED
_inventory_set_inventory_item_inspection_enabled
_inventory_is_item_expired
_inventory_get_item_expiry_time
_inventory_get_inventory_item_count_with_guid
_inventory_get_inventory_item_count_with_itemid
_0xb1dd74a1f5536622
_inventory_get_children_count
inventory_get_children_in_slot_count
_inventory_get_inventory_item_equipped_in_slot
_inventory_fits_slot_id
_get_default_item_slot_info
p1: WARDROBE, KIT_CAMP, CHARACTER, KIT_MOONSHINER_PROPERTY Returns slot hash
_inventory_get_inventory_item_fit_slot
_0x9ac53cb6907b4428
p1 (out) and p2 (in) are both script arrays? item: can be a component item, see SHOP_CATALOG_BUILD_LIST_OF_WEAPON_COMPONENTS
_0x9d21b185abc2dbc4
p0 is the return value of DATABINDING::_DATABINDING_ADD_DATA_CONTAINER_FROM_PATH p2, p3: 0 Returns databindingEntryId
_0x75cfac49301e134f
p1, p2: 0
_0x9d21b185abc2dbc5
p2: 0 p3: -1 Returns databindingEntryId to be used with 0x75CFAC49301E134E (p0)
_0x75cfac49301e134e
p0: value returned by 0x9D21B185ABC2DBC5
_0x46db71883ee9d5af
Returns databindingEntryId to be used with 0x951847CEF3D829FF (p0)
_0x951847cef3d829ff
p0: value returned by 0x46DB71883EE9D5AF
_0x6862e4d93f64cf01
Only used in R* SP Scripts
_set_use_mission_inventory
This native has no functionality.
inventory_disable_mission_inventory_pickups
_inventory_use_mission_inventory
inventory_copy_mp_inventory_to_mission_inventory
_inventory_copy_item_to_mission_inventory
_0xe36d4a38d28d9cfb
Only used in R* SP Scripts
_inventory_use_sp_backup
_inventory_is_player_inventory_mirroring_transactions
_inventory_copy_item_to_inventory
_0x9e58207b194488ac
_set_item_prompt_info_request
_0x9b4e793b1cb6550a
Used in function SET_SHOP_BEING_ROBBED and many other shop related scripts and functions. INVENTORY_A*
_set_carriable_carry_action_prompt_override
_inventory_enable_weapons
_inventory_disable_weapons
Params: p1 = 0
_0xe1f45a67a9f0dcbc
Only used in R* SP Scripts
_0x6968ce7ac32f6788
Only used in R* SP Scripts
_inventory_create_item_collection_2
Returns collectionId
_inventory_create_sorted_collection
p1: 32 Returns collectionId