add some inventory examples

This commit is contained in:
Linden committed 2022-05-15 22:27:07 +10:00
1 parent 7380341246
commit c1d420aeaa
5 files changed
+44 -15

No files matched your search

@@ -16,8 +16,9 @@ for k, v in pairs(water) do
print('\n______________'..'\n- index '..k)
print(v.name, 'slot: '..v.slot, 'metadata: '..json.encode(v.metadata))
water = v
break
end
water.metadata.type = 'clean'
ox_inventory:SetMetadata(source, water.slot, water.metadata)
print(('modified %sx water in slot %s with new metadata'):format(water.count, water.slot))
```
```