Define an inventory item once and get it as an ox_inventory entry, a qb-core entry or ESX SQL. Weight, stacking, use animation and degradation included.
Internal id. Lowercase with underscores, this is what your scripts reference.
Shown in the inventory UI.
Tooltip text.
PNG dropped into your inventory's images folder.
In grams for ox_inventory and qb-inventory. A water bottle is around 500.
Off makes every copy occupy its own slot, right for weapons and IDs.
Closes the inventory UI when the item is used.
qb-core only: whether the item triggers a use event at all.
ox_inventory only. Off writes consume = 0, so using the item keeps it, which is what a lockpick or a phone wants.
ox_inventory only. 0 means the item never spoils.