fix(ox_inventory): hooks createItem (#67)

This commit is contained in:
Nfire authored and GitHub committed 2022-11-07 08:41:34 +11:00
1 parent 2bfdefcc9d
commit f89fa09cab
1 file changed
+1 -1
+1 -1
View File
@@ -90,7 +90,7 @@ Triggered when an item is created, either by buying it, using AddItem, or when c
By returning a table you can modify or replace the metadata given to an item.
```lua
exports.ox_inventory:registerHook('openInventory', function(payload)
exports.ox_inventory:registerHook('createItem', function(payload)
print(json.encode(payload, { indent = true }))
local metadata = payload.metadata
metadata.label = 'Mineral Water'