mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
311 B
311 B
Takes traditional item data and updates it to support ox_inventory.
-- 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}]