mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
fix(ox_inventory): hooks createItem (#67)
This commit is contained in:
1 parent
2bfdefcc9d
commit
f89fa09cab
1 file changed
+1
-1
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user