Migration Guide
Kivo Inventory - Compatibility & Migration Guide
This document lists every custom modification made on top of ox_inventory. When updating to a newer version of ox_inventory, follow this guide to re-apply all changes.
Current base version: ox_inventory 2.44.1
1. Client-Side NUI Callbacks
File: client.lua (bottom of file, lines ~1604-1666)
Five custom RegisterNUICallback blocks must be appended to client.lua:
getBalances
exports['kivo-inv-bridge']:GetPlayerBalances()
{ cash: number, bank: number } (fallback: { cash = 0, bank = 0 })
getPlayerInfo
exports['kivo-inv-bridge']:GetPlayerInfo()
{ name: string, id: string } (fallback: false)
getAvatar
exports['kivo-inv-bridge']:GetPlayerAvatar()
string URL (fallback: nil)
requestAuth
exports['kivo-inv-bridge']:GenerateAuthToken()
AuthToken table (fallback: nil)
getInventoryConfig
exports['kivo-inv-bridge']:GetInventoryConfig()
{ useContextMenu: boolean } (fallback: { useContextMenu = true })
All five check GetResourceState('kivo-inv-bridge') == 'started' and wrap the export call in pcall for safety.
2. Built Web UI
The web/build/ folder contains the pre-compiled UI with all custom components baked in. When migrating:
Replace the stock ox_inventory
web/build/folder with ours entirelyDo not mix files from stock and custom builds — replace the whole folder
If ox_inventory updates its web build process or dependencies, the source must be rebuilt from our repo
3. Authentication
The kivo-inv-bridge provides authentication for licensed clients. The requestAuth NUI callback handles this — make sure it is included when migrating.
The bridge must be running and responding for the inventory to function. If it is missing or not started, the inventory will stop working.
