Remove internal functions and move external ones

This commit is contained in:
Luke committed 2022-03-26 15:17:51 +01:00
1 parent 82518e769b
commit 49d5315d52
76 files changed
-3

No files matched your search

@@ -0,0 +1,13 @@
Takes traditional item data and updates it to support ox_inventory.
```lua
-- playerId: number
-- items: table
exports.ox_inventory:ConvertItems(playerId, items)
```
Data conversion example:
```
Old: [{"cola":1, "bread":3}]
New: [{"slot":1,"name":"cola","count":1}, {"slot":2,"name":"bread","count":3}]
```