This commit is contained in:
Luke committed 2023-06-04 15:15:21 +02:00
1 parent 3cebaf7fa5
commit b5eba8423f
229 files changed
+6238 -10690

No files matched your search

@@ -0,0 +1,15 @@
Returns a table of all registered items. The format is as defined in [data/items.lua](https://github.com/overextended/ox_inventory/blob/main/data/items.lua).
```lua
exports.ox_inventory:Items()
```
The following snippet can be used in crafting resources such as okokCrafting or core_crafting, rather than retrieving information from the server.
```lua
local itemNames = {}
for item, data in pairs(exports.ox_inventory:Items()) do
itemNames[item] = data.label
end
```