mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
new docs
This commit is contained in:
1 parent
3cebaf7fa5
commit
b5eba8423f
229 files changed
+6238
-10690
No files matched your search
@@ -0,0 +1,16 @@
|
||||
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:
|
||||
|
||||
```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