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,14 @@ Takes traditional item data and updates it to support ox_inventory.
|
||||
```lua
|
||||
exports.ox_inventory:ConvertItems(playerId, items)
|
||||
```
|
||||
|
||||
* playerId: `number`
|
||||
* items: `table`
|
||||
|
||||
Data conversion example:
|
||||
```
|
||||
Old: [{"cola":1, "bread":3}]
|
||||
New: [{"slot":1,"name":"cola","count":1}, {"slot":2,"name":"bread","count":3}]
|
||||
|
||||
```lua
|
||||
Old: [{"cola":1, "bread":3}]
|
||||
New: [{"slot":1,"name":"cola","count":1},
|
||||
{"slot":2,"name":"bread","count":3}]
|
||||
```
|
||||
Reference in new issue
Block a user