mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
update inventory server docs
This commit is contained in:
1 parent
c013d3ff0c
commit
4dbd9dd4ab
21 files changed
+112
-91
No files matched your search
@@ -1,13 +1,13 @@
|
||||
Takes traditional item data and updates it to support ox_inventory.
|
||||
|
||||
```lua
|
||||
-- playerId: number
|
||||
-- items: table
|
||||
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}]
|
||||
```
|
||||
```
|
||||
Reference in new issue
Block a user