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:

Callback
Bridge Export Called
Returns

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 entirely

  • Do 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.

circle-exclamation

5. Migration Checklist

1

Back up your current files

Back up your current working ox_inventory before starting.

2

Append NUI callbacks

Append the five NUI callbacks (Section 1) to the bottom of the new client.lua.

3

Replace web build

Replace web/build/ entirely with our pre-built folder (Section 2).

4

Ensure bridge order

Verify kivo-inv-bridge starts before ox_inventory in server.cfg.

5

Test authentication

Test auth — confirm the inventory works with kivo-inv-bridge running after 1 hour+.