SCode StudiosSCodeDocs
Tebex Store

Installation

Installation of SCode Inventory + Hud

Supported Core

  • QBCore

  • QBox

  • ESX

  • ox_core

  • Standalone

Requirements

  • OneSync enabled (set onesync on) and a recent server artifact

  • oxmysql with MySQL or MariaDB (recommended). Without it, data is stored in KVP, which is only meant for small or test servers.

  1. Drag and drop

    Put the rr_inventory and rr_hud folders into your resources folder. Keep the folder name rr_inventory.

  2. Remove your old inventory

    Two inventories can't run at the same time. Remove ox_inventory, qb-inventory, tgiann-inventory, qs-inventory or codem-inventory from your server, or delete their ensure lines.

  3. Start order

    Start the inventory right after your framework and before every script that uses the inventory:

    Code
    ensure oxmysql
    ensure qb-core            # or qbx_core / es_extended / ox_core
    ensure rr_inventory
    ensure rr_hud
  4. Admin permission

    Add the ACE permission for the admin panel and admin commands to your server.cfg:

    Code
    add_ace group.admin rr_inventory.admin allow

    qbcore.admin / qbcore.god (QBCore) and group.admin (ESX) are accepted as well.

  5. Choose a preset (optional)

    The default preset is roleplay. To use another one, set it in server.cfg:

    Code
    setr rr_inventory:preset "pvp"

    See Configuration for the presets.

  6. First start

    Start the server. On the first start:

    • the MySQL tables are created automatically;

    • an existing KVP save is imported into MySQL once;

    • rr_storage status in the console shows the storage state.

The tables are created with CREATE TABLE IF NOT EXISTS. Run install.sql by hand only if your database user isn't allowed to create tables.

config/, locales/, server/framework/ and server/bridge.lua are open. Keep your own changes in these files.

Framework notes

  • QBCore: items are added to QBCore.Shared.Items, the cash item is synced with the cash account and Player.Functions.AddItem and the other player functions use the inventory. For qb-weapons, set weapons.mode = 'qb-weapons'.

  • QBox: qbx_core is detected automatically.

  • ESX: money is synced with cash and black_money with dirty_cash. xPlayer.inventory is kept up to date.

  • ox_core: cash is the money item in the inventory, no sync needed.

  • Standalone: the owner is the FiveM license. Stash groups use ACE (group.<name>).

Troubleshooting

Problem

Fix

Execution of function reference in script host failed or an export is not found

Start rr_inventory right after the framework and before other scripts. After restarting rr_inventory live, also restart the scripts that use the inventory.

No ox_inventory / qb-inventory export

The old inventory is still in your resources or still started. The compatibility exports only work while the original isn't running.

Console says oxmysql was not found and records are kept in KVP

Start oxmysql before rr_inventory, or set storage.driver = 'kvp' on purpose.

storage halted (persist)

MySQL can't write. Check the connection and disk. rr_storage status shows the last error. It continues on its own once the queue is written.

Config error, inventory doesn't open

The console message names the wrong key. Fix that value and restart.

Item picture missing

Put a PNG at web/dist/catalog-icons/<item_name>.png, or pick a picture in the admin panel.

Items gone after a config change?

No. Items that no longer fit go to the overflow box (/tasanlar), removed item definitions to orphan records (admin panel > Storage).

Admin panel doesn't open

Check add_ace group.admin rr_inventory.admin allow and that the player is in group.admin.

Set MySQL max_allowed_packet to at least 16M.

Last updated: December 6, 2026