mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 06:28:54 +00:00
formatting and typos
This commit is contained in:
1 parent
75698216e0
commit
724c7e356d
99 files changed
+515
-305
No files matched your search
@@ -3,11 +3,13 @@ Sets metadata on the specified slot.
|
||||
```lua
|
||||
ox_inventory:SetMetadata(inv, slot, metadata)
|
||||
```
|
||||
|
||||
* inv: `string` or `number`
|
||||
* slot: `number`
|
||||
* metadata: `table`
|
||||
|
||||
**Example:**
|
||||
|
||||
```lua
|
||||
local ox_inventory = exports.ox_inventory
|
||||
|
||||
@@ -18,6 +20,7 @@ for k, v in pairs(water) do
|
||||
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))
|
||||
|
||||
Reference in new issue
Block a user