Skip to content
FIVECRATE
Frameworks beginner

How to Migrate QBCore to Qbox Safely (With a Rollback Plan)

Migrate QBCore to Qbox on a test copy: what carries over, the database and qb-inventory conversion commands, go-live day and a rollback plan from Qbox's docs.

Developer checks two server workstations transferring player data, with a separate protected backup drive on the desk
Author: FiveCrate
Published:
Updated:
Read time: 32 min
Applies to
FiveM Legacy on Windows, with Linux and Enhanced notes; qb-core 1.3.0 to qbx_core v1.24.1 (October 30, 2026); MariaDB 10.9 or newer; Qbox migration docs as read on November 20, 2026
Last verified

Direct Answer

To migrate QBCore to Qbox, keep the live server running and build a second Qbox server from the txAdmin recipe, on MariaDB 10.9 or newer. Copy your jobs, items, vehicles and staff into it, load a copy of the QBCore database, then convert that copy with Qbox’s SQL files and the convertjobs and convertqbinventory console commands. After testing, repeat the database steps on a fresh copy on go-live day and point txAdmin at the Qbox folder. The live QBCore database is never changed, so the rollback is to point txAdmin back at the old folder. Houses, saved outfits and weapon attachments do not carry over.

QBCore to Qbox migration at a glance

Qbox publishes an official migration guide in six parts. This page follows it as read on November 20, 2026, and adds the platform notes, the rollback kit and the places where official sources disagree. The official guide is aimed at owners, not developers: “You don’t need to know how to code.”

PartWhat you doWhere it happensLive QBCore server
1. PrepareCheck MariaDB, back up, list your resourcesLive server, read-onlyKeeps running
2. BuildDeploy the Qbox recipe as a second serverTest serverKeeps running
3. SettingsMove server.cfg lines, staff, jobs, gangs, items, vehicles and your own scriptsTest serverKeeps running
4. DatabaseLoad a copy of the database and convert it in nine stepsThe copy, qbox_migrationKeeps running
5. TestPlay with real characters and your staffTest serverKeeps running
6. Go liveRepeat the database steps on a fresh copy and switch players overLive machineClosed while you work

Only part 6 needs downtime, and Qbox’s advice for that day is to “plan a few hours”. Until then, in the guide’s words, “Your QBCore server keeps running the whole time, and if anything goes wrong you just keep using it.”

Is QBCore deprecated? What its maintainers and txAdmin say in 2026

QBCore’s maintainers say it has left the platform, and txAdmin no longer offers its recipe. These are the statements, with their dates:

  • October 29, 2026: a commit titled “deprecated qbcore recipe” in txAdmin’s recipe repository removed QBCore from the lists behind Popular Recipes, so the setup page no longer offers it.
  • November 16, 2026: the first post of QBCore’s release thread on the Cfx.re forum, last updated that day, reads “If you’re reading this in 2026, QBCore has left the platform.” It adds that the code will “always be on GitHub and won’t be removed”.
  • Read on November 20, 2026: QBCore’s documentation site says “QBCore has withdrawn from other platforms” and that its existing pages “remain here as a reference”.
  • Qbox’s migration guide sums it up: “QBCore has been deprecated by its maintainers and is no longer offered as a txAdmin recipe. Qbox started as a copy of QBCore, so it is the closest place to move to.”

The qbx_core README calls the project “a successor to qb-core”, created on September 27, 2022. None of these sources sets a shutdown date for servers that already run QBCore, so you can prepare the move on a copy instead of rushing it. For the wider picture, see the QBCore vs Qbox vs ESX comparison.

What carries over from QBCore to Qbox and what is lost

Qbox lists both sides. Read them before you promise your players anything.

Carries overHow
Characters, names, citizen IDs and character detailsAutomatically
Cash, bank and crypto balancesAutomatically
Jobs, gangs and gradesAfter the convertjobs console command
Items in player inventories, stashes, trunks and gloveboxesAfter the convertqbinventory console command
Owned vehicles with their modsAfter a few database commands
Job and gang bank accountsAfter one database command
ClothingAfter the in-game command /migrateskins qb-clothing
Phone numbers and mailsAfter one database command
LostReason given by Qbox
Houses and apartments, and the items in their stashesQbox uses a different housing system; players pick a new apartment
Saved outfitsThe clothing script stores them differently
Phone contacts, messages, photos and tweetsQbox uses a different phone
Weapon attachmentsox_inventory stores attachments differently
Bank transaction historyBalances come along, the history does not
Weed plantsThey belong to houses

Three smaller losses appear deeper in the guide: edits made inside qb-core itself, the shared accounts between players from qb-banking, and whether each door was locked or open.

Qbox requirements: MariaDB 10.9 or newer and FXServer build 10731 or newer

The database server comes first. Qbox needs MariaDB 10.9 or newer, and its migration guide states that “MySQL and XAMPP are not supported”. Run this query in HeidiSQL to see what your server uses:

SELECT VERSION();
ResultMeaning
A value such as 11.8.3-MariaDB, at 10.9 or higherSupported
10.4.x-MariaDB or another version below 10.9Too old; Qbox calls this common with XAMPP
A number without the word MariaDB, such as 8.0.36MySQL, which Qbox does not support

Qbox’s installation page sets the minimum at MariaDB 10.9.0 and recommends MariaDB 12.3 LTS for new servers. A newer MariaDB can be installed next to the old one for the test server; when port 3306 is taken, the Windows installer suggests 3307. In that case, enter 3307 wherever you connect to the database: in HeidiSQL’s Port field, in txAdmin’s database settings when you deploy the test server, and in mysql_connection_string after the host. Create the qbox_migration copy from Step 6 in the new MariaDB too. Installation is covered in the MariaDB and HeidiSQL guide.

You also need:

  • A current FXServer build. Qbox’s guide says “Qbox needs build 10731 or newer”, and the manifest of qbx_core v1.24.1, released on October 30, 2026, declares the dependency /server:10731. Cfx.re’s own floor is higher: its announcement set October 15, 2026 as the end of the compatibility window, after which “Connections to older FXServer versions will no longer be possible”, and recommended FXServer 35245 or later.
  • Three tools. HeidiSQL for the database (it comes with the MariaDB installer for Windows), Visual Studio Code for config files, and 7-Zip to unpack the server files. Qbox warns against Windows Notepad for config files.
  • A second server registration key from the Cfx Portal for the test server. Qbox notes that keys are free and that a separate key “keeps your live server’s key and server list entry untouched”.
  • A notes file. Paste every database command and console command into it as you run it, in order. On go-live day you run that exact list again.

Does the migration work on Linux or on FiveM for GTAV Enhanced?

The official guide is written for Windows on FiveM Legacy: its steps use FXServer.exe, a .bat start file and HeidiSQL. It does not mention Linux or FiveM for GTAV Enhanced.

  • Server at a hosting company: Qbox’s answer is to build the test server on your own Windows PC, download the whole server folder with the host’s file manager or FTP, and export the database as a .sql file with phpMyAdmin. If the host’s database is MySQL or a MariaDB older than 10.9, Qbox says to ask the host to move you to a current MariaDB before go-live day.
  • Test server on Linux: txAdmin’s documentation says to add export VAR_NAME=VALUE lines to run.sh, before its exec line, where a Windows .bat file uses set lines. The variables are the ones shown in Step 3.
  • Enhanced: txAdmin’s recipe list for Enhanced servers also contains Qbox. Cfx.re lists Asset Escrow as “Not implemented yet” on Enhanced and names the server executable cfx-server.exe. This page covers the move on FiveM Legacy only.
  • Database export on Linux: MariaDB’s mariadb-dump client writes the same kind of file. Dumping one database by name writes no CREATE DATABASE statement, which is what Qbox’s copy procedure needs. --single-transaction dumps InnoDB tables in a consistent state without blocking the running server, and --skip-add-drop-table leaves out the DROP TABLE lines that are on by default. With -p and no value, the client asks for the password. The database and file names below are examples.
mariadb-dump --single-transaction --skip-add-drop-table -u root -p qbcore_a1b2c3 > qbcore-2026-11-20.sql

Step 1: Back up the live server and database

You do not need to stop the live server for this. Qbox suggests a quiet time with few players.

  1. Export the database. In HeidiSQL, right-click the database and choose Export database as SQL. Under Database(s), untick both Drop and Create. Under Table(s), tick Create and untick Drop. Set Data to Insert and Output to Single .sql file, and put the date in the file name.
  2. Check the file. Open it in VS Code and search for CREATE DATABASE, then for DROP DATABASE. If either is found, delete the file and export again. A backup with those lines would write into your original database when you load it.
  3. Copy the server folder, the one that contains server.cfg and resources. In txAdmin, Settings, then FXServer, shows it as Server Data Folder.
  4. List every edit made inside qb-core. Those changes do not carry over and have to be redone on Qbox.
  5. Store the backups outside the server folder and keep them until well after go-live.

The table options matter. With Drop unticked for tables, a backup loaded into the wrong database by mistake fails instead of overwriting tables.

Step 2: List your resources and find the Qbox replacements

Open server.cfg and write down every resource on an ensure or start line. A folder with a name in square brackets, such as [qb], is a group that contains more resources, so list the resources inside every group you start. Stock QBCore resources are replaced by the Qbox recipe, so you do not copy them to the test server. Qbox warns that running both “means double commands, menus and errors”.

QBCore resourceOn QboxNote
qb-coreqbx_coreAnswers to the name qb-core and carries the bridge
qb-multicharacter, connectqueueBuilt into qbx_coreQueue toggled with qbx:enableQueue
qb-inventory, qb-weapons, qb-shops, qb-craftingox_inventoryAmmo and attachments get different names
qb-targetox_targetNo qb-target exports
qb-menu, qb-input, progressbarox_libQBCore.Functions.Progressbar still works
qb-banking, qb-managementRenewed-Banking, qbx_managementSociety balances need copying
qb-clothingillenium-appearanceSkins convert, saved outfits do not
qb-apartments, qb-houses, qb-interiorqbx_propertiesNo import
qb-phoneNPWD with qbx_npwdNumbers and mail carry over
qb-garagesqbx_garages and qbx_vehiclesVehicles need a few fixes
qb-vehicleshopqbx_vehicleshopIts migrate.sql keeps financing
qb-fuelox_fuelFuel lives in the fuel state bag
qb-policejob, qb-ambulancejobqbx_police, qbx_ambulancejob and qbx_medical
qb-doorlockox_doorlockConverts qb-doorlock config files
qb-hotdogjob, qb-cryptoNoneThe crypto money type still exists

Everything that is not a stock qb- resource counts as one of your own scripts. A stock resource without a replacement, such as qb-hotdogjob, is treated the same way: Qbox says it can usually keep running. You check those in Step 5.

Step 3: Build the Qbox test server next to the live one

The test server is a fresh Qbox install with its own folder, ports and empty database. These steps are Qbox’s Option A, for a live server on the same Windows machine.

  1. Create the folders. Make C:\FXServer-qbox and, inside it, a folder called server.
  2. Download the newest build from the FiveM server artifacts list, from the list itself and not from the buttons at the top, and unpack server.7z into C:\FXServer-qbox\server.
  3. Create the start file. Save the text below as C:\FXServer-qbox\start-test-server.bat.
  4. Start it. Double-click the file, open http://localhost:40125, enter the PIN and follow txAdmin’s setup with the second registration key.
  5. Deploy the recipe. Choose Popular Recipes, then the Qbox entry. Qbox’s docs call it QBox Framework; txAdmin’s recipe index names it Qbox.
  6. Enter your MariaDB login and keep the new database name txAdmin suggests. Qbox’s rule is “Never point the test server at your live database.”
  7. Join it. In FiveM, press F8 and type connect localhost:30125.
@echo off
set TXHOST_DATA_PATH=C:\FXServer-qbox\txData
set TXHOST_TXA_PORT=40125
set TXHOST_FXS_PORT=30125
"C:\FXServer-qbox\server\FXServer.exe"
pause

TXHOST_DATA_PATH gives the test server its own txAdmin settings and accounts. TXHOST_TXA_PORT moves its txAdmin from port 40120 to 40125, and TXHOST_FXS_PORT moves the game server from 30120 to 30125. The TXHOST_* variables exist from txAdmin v8.0.0, whose changelog was posted on March 11, 2025. txAdmin’s documentation encourages separate txData folders for multiple servers, because otherwise the admins.json file will conflict.

If the live server is at a hosting company, Qbox’s Option B applies instead: deploy the recipe on your own PC, keep the normal ports and join with connect localhost:30120.

Before you change anything, confirm that the plain install works: the Live Console shows no SCRIPT ERROR, you can join, create a character and spawn, and the inventory opens with Tab. The deployer screens are explained in the txAdmin recipe guide.

Step 4: Move your settings to the test server

Work with two VS Code windows: the old QBCore folder on one side, the test server on the other.

Which server.cfg lines to copy from QBCore

Do not copy the old file over the new one, because Qbox needs the lines the recipe wrote. Copy single lines instead.

CopyDo not copy
sv_maxclientssv_licenseKey (the test server has its own key)
sv_enforceGameBuild, only if your old number is higherendpoint_add_tcp and endpoint_add_udp
set and setr lines that belong to your own scriptsmysql_connection_string
ensure qb-core, ensure [qb] and other QBCore start lines
Lines that add staff to qbcore.god, qbcore.admin or qbcore.mod

For comparison, the recipe’s server.cfg of October 15, 2026 sets sv_enforceGameBuild 3258.

Official sources disagree on one line. Qbox’s list also says to copy steam_webApiKey “if you used one”. Cfx.re’s Server Commands page says that as of November 4, 2026 this variable “no longer works and has no effect”. If your scripts rely on steam: identifiers, the same page points to sv_enforceSteamAuth, which requires server version 38004 or later.

Your server’s name, description, tags and banner are not set in server.cfg anymore. You set them in the Cfx Portal at go-live.

Staff permissions: from qbcore.god to group.admin

Qbox uses three groups, defined in permissions.cfg next to server.cfg: group.admin replaces qbcore.god and qbcore.admin, group.mod replaces qbcore.mod, and group.support is for support staff. Copy your old add_principal lines to the bottom of the test server’s permissions.cfg and change the last word:

add_principal identifier.fivem:1234567 group.admin
add_principal identifier.license:abc123def456 group.mod

Two details from Qbox’s guide matter here:

  • Opt-in. qbx_core’s admin commands, such as /setjob and /givemoney, work only after the admin types /optin in chat once. The check arrived in qbx_core v1.24.0, released on August 22, 2026.
  • “god” commands. QBCore scripts that register commands for the god level need a group.god, which the recipe’s permissions.cfg does not define. Qbox’s fix is to add the group and put your admins in it, with your own identifier in the last line.
add_ace group.god god allow
add_principal group.god group.admin
add_principal identifier.fivem:1234567 group.god

The admin permissions guide for QBCore, Qbox and ESX covers the groups in detail.

Convert jobs.lua and gangs.lua to the Qbox format

Jobs live in qbx_core/shared/jobs.lua and gangs in qbx_core/shared/gangs.lua. Start from your QBCore files and apply three changes:

  1. Fix the top of the file. Delete the lines above QBShared.Jobs = { and change that line to return {. If ForceJobDefaultDutyAtLogin was false in your file, set the same line in qbx_core/shared/main.lua to false. In the gangs file, do the same with QBShared.Gangs = {.
  2. Remove the quotes from grade numbers. ['0'] becomes [0]; with quotes, Qbox cannot find the grade. Qbox does this in VS Code with a regular-expression replace of \['(\d+)'\] by [$1].
  3. Add bankAuth = true to boss grades. Replace isboss = true with isboss = true, bankAuth = true. Boss grades need it to use the job’s bank account, because Renewed-Banking checks this instead of isboss.
return {
    police = {
        label = 'Law Enforcement',
        type = 'leo',
        defaultDuty = true,
        offDutyPay = false,
        grades = {
            [0] = { name = 'Recruit', payment = 50 },
            [4] = { name = 'Chief', isboss = true, bankAuth = true, payment = 150 },
        },
    },
}

Do not renumber grades, keep job and gang names in lower case, and keep the unemployed job and the none gang, because characters cannot load without them. Finish this before the database work: the job conversion skips every job and grade it cannot find in these files.

Convert QBCore items for ox_inventory with convertqbitems

On Qbox, items are defined in ox_inventory/data/items.lua, not in the core.

  1. Paste your QBCore items from qb-core/shared/items.lua into the test server’s qbx_core/shared/items.lua.
  2. Run convertqbitems in the Live Console. It writes the items ox_inventory does not have yet to qbx_core/converted.lua, already in the right format.
  3. Copy those entries into ox_inventory/data/items.lua.
  4. Copy the item images from qb-inventory/html/images to ox_inventory/web/images, skipping files that already exist.
  5. Restart, then empty qbx_core/shared/items.lua by replacing its content with return {}.

The converter leaves out ammo, attachments and weapon tints, because ox_inventory has its own. QBCore’s pistol_ammo, for example, becomes ammo per caliber such as ammo-9 and ammo-45. Shops and scripts that hand out QBCore ammo by name must be changed. Adding items later works as described in how to add items to ox_inventory.

Add-on vehicles in vehicles.lua and other qb-core settings

qbx_core/shared/vehicles.lua already has every GTA vehicle. Add only your add-on vehicles, with the model name as the key and a hash line. Qbox warns that one entry without a hash stops the whole file from loading. Then copy the vehicle resources themselves and ensure them.

Values you changed in qb-core/config.lua have new homes in qbx_core/config/shared.lua, qbx_core/config/server.lua and qbx_core/config/client.lua. Settings of other stock resources, such as the config of qb-policejob, have to be set again in the config of their Qbox replacement. Copy the values, never whole config files from one resource to another.

Step 5: Run QBCore scripts through the Qbox bridge

The bridge is the part of qbx_core that answers QBCore’s functions and events. The README promises “Backwards compatibility with Most QB Resources”, and the docs explain how:

  • qbx_core answers to the name qb-core, so scripts that depend on it start normally.
  • exports['qb-core']:GetCoreObject() still works and returns the familiar QBCore object.
  • QBCore’s events still fire, and QBCore callbacks still work.
  • The bridge covers QBCore 1.3.0’s functions, exports and events, on the server and the client. qbx_core v1.24.1, released on October 30, 2026, added the ones that were still missing.

It is switched on by this line in the recipe’s server.cfg. Leave it on:

setr qbx:enableBridge "true"

Move your scripts one at a time. Create resources/[custom], add ensure [custom] at the very bottom of server.cfg, copy one script in, restart and read the Live Console. Check each script like this:

CheckWhat to look forWhat to do
ConfigA framework, inventory, target or menu optionChoose qbx or qbox if offered, otherwise qb; choose the ox option for inventory, target and menus
fxmanifest.luaA dependency on a QBCore resourceqb-core, qb-vehiclekeys, qb-weathersync and qb-management are among the names Qbox answers to; qb-target and qb-inventory are not
Code searchqb-inventory, qb-target, qb-menu, qb-input, LegacyFuelSwitch the script to its ox option or get a Qbox version from its author
EscrowA .fxap file in the folderOnly the config can be changed; ask the author when it has no ox option

There is one exception to leaving stock resources behind. When a script uses QBCore’s menus and has no ox_lib option, Qbox says to copy the qb-menu and qb-input folders from the QBCore server into resources/[custom] too, where they work through the bridge.

QBCore.Functions.Notify and QBCore.Functions.HasItem are fine as they are. Scripts that read or write the database themselves need careful testing, because inventories, jobs and vehicles are stored differently. Multi-job, multicharacter and queue scripts are usually removed, since qbx_core has those built in. The same checks apply to anything you add later, including FiveCrate’s FiveM scripts.

At this stage the test server still runs on an empty database, so an error like Table '...' doesn't exist from a script that stores its own data is expected. Note the script and test it again after Step 6.

If scripts on your test server were already adjusted to an older Qbox, read the v1.24.1 release notes. They list three breaking changes that make the bridge behave like QBCore: Progressbar returns immediately, PlayAnim waits for the animation, and the duty functions match a job’s type.

Step 6: Convert a copy of the QBCore database

Everything here runs on a copy called qbox_migration. Qbox notes that its SQL was tested on MariaDB 12.0 against a database made with QBCore 1.3’s own SQL files, so a heavily customized server should take the checks seriously.

Before every SQL block, run this and confirm that it answers qbox_migration:

SELECT DATABASE();

The nine database steps below follow Qbox’s Database page. Database steps 1 to 5 happen in HeidiSQL with the test server stopped. Database steps 6 and 7 happen in the Live Console with the server running and nobody connected. If a check fails, stop there. Qbox’s own rule is “Stuck? Stop and ask. Guessing on a database is how data gets lost.”

  1. Copy the database. Stop the test server in its txAdmin. Count your characters on the live database, which is the only query the guide runs there, and export that database as in Step 1. In HeidiSQL, right-click your connection, choose Create new, then Database, name it qbox_migration and set Collation to utf8mb4_unicode_ci. Click the new database on the left to select it, then load the file with File, then Run SQL file…. In the test server’s server.cfg, change only the database name in mysql_connection_string. The count on the copy must match.

    SELECT COUNT(*) AS characters FROM players;
  2. Fix the collation. Qbox’s tables are linked to your players table, and linked tables must use the same collation. Run the check below. If it returns rows, run the conversion block from step 2 of the official Database page once, then check again.

    SELECT TABLE_NAME, TABLE_COLLATION
    FROM information_schema.TABLES
    WHERE TABLE_SCHEMA = DATABASE()
      AND TABLE_COLLATION <> 'utf8mb4_unicode_ci';
  3. Run the Qbox SQL files. First move QBCore’s outfits table aside with the statement below. Then run, in this order, qbox.sql from the Qbox recipe, qbx_core.sql, vehicles.sql, vehshop.sql and migrate.sql, followed by the SQL files of the optional resources you use, which the official page lists. qbox.sql is downloaded from the recipe’s GitHub repository; the others sit in the test server’s resources/[qbx] folders. Run migrate.sql only once: it moves vehicle financing into a new table. Afterwards SELECT COUNT(*) FROM player_groups; must answer 0, not an error.

    RENAME TABLE IF EXISTS `player_outfits` TO `player_outfits_qbcore`;
  4. Fix vehicles. Add the two columns below. Without coords, garages do not work. Then follow the official page for vehicles that were never parked and for garages that do not exist on Qbox, such as casinogarage.

    ALTER TABLE `player_vehicles` ADD COLUMN IF NOT EXISTS `coords` text DEFAULT NULL;
    ALTER TABLE `players` ADD COLUMN IF NOT EXISTS `phone_number` varchar(20) DEFAULT NULL;
  5. Copy job and gang bank balances. Personal balances come along automatically. Society money does not, because Renewed-Banking keeps it in its own bank_accounts_new table. The official page gives one INSERT statement for current QBCore and a second one for older servers that used a management_funds table.

  6. Start the test server and run convertjobs. Do not join yet. Type the command in the Live Console once the server has started without a SCRIPT ERROR. It fills the player_groups table that the boss menu and multiple jobs use, it runs only from the server console, and it is safe to run more than once. It quietly skips jobs and grades that are missing from your jobs file, so run the check query from the official page afterwards.

  7. Convert inventories as described in Step 7 below.

  8. Convert clothing. Join alone, with group.god on your account, and type /migrateskins qb-clothing in chat. It puts every saved look on your own character for a moment, so do not touch anything until the notification says the migration finished.

  9. Decide on housing, phone and doors. Every existing character is asked to pick a new apartment on the next login. ox_doorlock converts qb-doorlock config files: copy them into its convert folder after database step 3 and restart the server. Keep the originals, because you need them again on go-live day.

One setting can undo database step 6. In the recipe’s server.cfg, qbx:cleanPlayerGroups is true, so every server start removes jobs, gangs and grades from player_groups that are not in your files. If you forgot a job, fix the file and run convertjobs again.

Step 7: Convert qb-inventory to ox_inventory with convertqbinventory

convertqbinventory is a qbx_core console command that arrived in v1.24.1 on October 30, 2026. If the console says the command does not exist, update qbx_core. The ox_inventory README lists ox_core, esx, qbox and nd_core as its supported frameworks, and QBCore is not among them.

On QBCoreAfter the conversion
Each character’s inventoryThe same character’s inventory
StashesStashes with the same name
Trunks and gloveboxesThe trunk and glovebox of the owned vehicle with that plate
Police evidence drawersEvidence stashes
  1. Finish the items first. ox_inventory throws away items it does not know the moment a player opens their inventory.
  2. Empty the server. The real conversion refuses to run while players are online.
  3. Do a dry run. In the Live Console, type convertqbinventory dryrun. It changes nothing and prints what a real run would do.
  4. Read every [WARN] line. The one that costs items starts with Items not defined in ox_inventory: the items it lists would be lost. Add each of them to ox_inventory/data/items.lua, restart and repeat the dry run. QBCore ammo such as pistol_ammo shows up there too: add it as an item, or accept that it is lost.
  5. Convert for real with convertqbinventory.
  6. Check it. A second dry run must report 0 to convert. Then join with an old character and open the inventory.

Qbox’s example of what a dry run prints:

[INFO] Players: 312 rows: 298 to convert, 14 empty or already ox format (skipped), 0 invalid JSON (skipped)
[INFO] Vehicles: 85 trunks and 40 gloveboxes to write
[INFO] Stashes: 23 stashes to create (2 evidence lockers merged from 5 QB drawers)
[WARN] Items not defined in ox_inventory (kept as-is) (3): pistol_ammo x41, burger x6, oldphone x2
[INFO] Dry run complete: 298 player, 125 vehicle and 23 stash writes would be made. Nothing was changed.

What the sources say about safety and limits:

  • All or nothing. Everything is written in one go, and if anything fails, nothing is changed.
  • A backup is kept. Every character inventory is saved to a players_qb_inventory_backup table before it is overwritten, and QBCore’s own tables are not changed.
  • Weapons keep their serial number, ammo and quality. Attachments are lost. The command’s own warning adds that the QBCore data is kept in metadata.attachments.
  • Slots. If a character has more item stacks than inventory:slots allows, the dry run warns you. The recipe’s ox.cfg sets 50 slots; raise the value there so everything fits.
  • Stashes are shared. Converted stashes have no owner, so a script that gives every player a personal stash will not see the converted items.
  • Cash is untouched. It stays with the character and shows up as the money item.

If you would rather not keep items at all, the official page gives a one-line UPDATE that empties every inventory instead. Cash is kept in that case too.

Step 8: Test with real characters, then go live

Test with characters from the copied database that have a job, a gang, owned vehicles and a full inventory. New characters only prove that Qbox works. Keep the Live Console open: every SCRIPT ERROR is something to fix before go-live. Staff who join from outside connect to port 30125, which must be open for TCP and UDP in the firewall.

Before go-live day, run the whole database procedure once more on a second fresh copy, such as qbox_migration2, to prove that your notes work from start to finish. Qbox’s rule here is “Never delete or empty a database to reuse it. Always make a new one.”

On go-live day, with both servers on the same machine:

  1. Announce the downtime and what changes for players: a new inventory, a new apartment to pick, and saved outfits and houses that do not carry over.
  2. Write down both folder pairs. In each txAdmin, Settings, then FXServer, shows Server Data Folder and CFG File Path. Note them for the Qbox server and for the QBCore server. The QBCore pair is your way back.
  3. Stop the test server for good, then close the QBCore server. Stop the test server in its txAdmin and close its start window. Announce the closing in game, kick everyone and click Stop in the live txAdmin.
  4. Update the live server’s FXServer files. Close the live txAdmin’s window and keep a copy of the old files. Copy everything from C:\FXServer-qbox\server into the folder with the live server’s FXServer.exe, replace the files, and start the live txAdmin again the way you always do.
  5. Back up the live database one last time, load it into a new database called qbox_live, and run database steps 2 to 5 from your notes on it. SELECT DATABASE(); must answer qbox_live first.
  6. Edit the Qbox server.cfg. Set the database name to qbox_live, change 30125 to 30120 in any endpoint lines, and put your live key in sv_licenseKey so the server keeps its place in the server list.
  7. Close Qbox to the public. Set closed = true under server in qbx_core/config/server.lua, and add add_ace group.admin qbadmin.join allow to permissions.cfg.
  8. Point the live txAdmin at the Qbox folder in Settings, then FXServer, and start the server. Keeping the live txAdmin keeps its bans, warnings, whitelist and admin accounts.
  9. Run the console steps with nobody connected: convertjobs, convertqbinventory dryrun, convertqbinventory, with the check after each one. For doors, copy your original qb-doorlock files into ox_doorlock/convert again and type ensure ox_doorlock in the Live Console. For clothing, join alone and run /migrateskins qb-clothing.
  10. Open the server. After a staff check, an admin runs /optin, then /openserver. Set closed back to false in the config as well.

If the live server is at a hosting company, Qbox keeps the same order with these differences. Deploy the Qbox recipe as a new server at the host. Copy your work from the test server to it: your edited Qbox files, the item pictures, permissions.cfg, the lines you added to server.cfg and the resources/[custom] folder. Then create one more new database for your data, because the recipe already put Qbox’s tables into the one it created. Qbox’s rule for that step is “Never use the QBCore server’s own database: that’s your way back.”

Rollback plan: how to go back to QBCore

The rollback works because the live QBCore database is never changed. Every conversion step runs on a copy. Build the plan before go-live day.

Keep thisWhyUntil
The final .sql export of the QBCore databaseThe last state of the old serverYou are sure you are staying on Qbox
The QBCore server folderIts resources and server.cfg are what txAdmin points back toSame
The QBCore Server Data Folder and CFG File PathYou paste them back into txAdminSame
A copy of the old FXServer filesTo return to exactly the same server versionSame
The original QBCore database, untouchedQbox calls it “your way back”Same
A rollback deadlineAfter it, you fix problems on Qbox insteadGo-live day

Qbox’s example of a deadline is “If we can’t fix it by 10 pm, we go back to QBCore.” To roll back:

  1. Stop the Qbox server.
  2. Point the server back to QBCore. On the same machine, open Settings, then FXServer in the live txAdmin, paste the QBCore paths from your notes and save. At a hosting company, switch back to the old server in their panel.
  3. Start the server and tell your players.

To return to exactly the same server version as before, put back the old FXServer files you copied in go-live step 4.

The cost is stated plainly in the guide: “Anything players did on Qbox in the meantime is lost, because there is no way to convert ox_inventory data back to qb-inventory.” That is the reason for the deadline.

If the live database itself is ever damaged, do not load the backup over it. Create a new database such as qbcore_restore, load the backup into it, change the database name in the live server’s mysql_connection_string and restart. The connection string format is explained in the oxmysql connection string guide.

After go-live, keep the bridge on. Qbox says to turn it off, with setr qbx:enableBridge "false", only once no resource uses qb-core anymore.

Troubleshooting

“Foreign key constraint is incorrectly formed” (errno 150) when running the Qbox SQL

Your tables use different collations. Fix the collation first (database step 2), then run the SQL files again. The full message starts with “Can’t create table” and names the table, for example player_groups.

“Table ‘…player_groups’ doesn’t exist” or “Unknown column ‘coords’”

The first means the Qbox SQL files were not run on the selected database (database step 3). The second means the vehicle columns are missing (database step 4). Run SELECT DATABASE(); to confirm you are on the copy before you repeat either step.

“Unemployed job not found. Does it exist in shared/jobs.lua?”

Your jobs file has no unemployed job. Put it back. qbx_core also needs the none gang.

Characters lose their job grade or boss access after the migration

Grade numbers still have quotes, or the numbers changed. Remove the quotes and keep the grade numbers you had on QBCore. The console message Invalid grade ... found in player_groups table means a grade that players hold is missing from your jobs or gangs file.

“Could not find dependency qb-target” or “No such export … in resource qb-inventory”

A script needs a QBCore resource that Qbox replaced. Switch the script’s config to its ox option, or ask the author for a Qbox version. The couldn’t start resource guide explains dependency errors in general.

“attempt to call a nil value (field ‘GetPlayerByLicense’)” on a QBCore function

Your qbx_core is older than its QBCore 1.3.0 support. Update it: stop the server, download qbx_core.zip from the newest release, keep a copy of the files you changed (the config folder and your edited files in shared), replace the qbx_core folder and copy your files back. For nil errors on the QBCore object itself, see the QBCore nil value error fixes.

“players are online. Inventory conversion must run with no players connected.”

convertqbinventory only runs on an empty server. Kick everyone or close the server, and run it again. A dry run still works with players online.

“Inventory for player.X contains invalid data”

That character’s inventory is still in QBCore’s format. Run convertqbinventory as described in Step 7.

“attempt to index a nil value” next to grades[…] in a QBCore script

The script looks up a grade with quotes around the number. On Qbox, job and gang grades have number keys, so a script that reads grades[tostring(level)] gets nil. Qbox’s fix is to change it to grades[level].

Staff get “no permission” on admin commands

Staff are still in qbcore.* groups, or did not run /optin. Move them to group.admin and have them opt in. Moderators cannot use qbx_core’s admin commands.

“No such export GetCoreObject in resource qbx_core”

A script calls exports.qbx_core:GetCoreObject(), but Qbox has no core object of its own. Change the call to exports['qb-core']:GetCoreObject(), which the bridge answers, or set the script’s framework option to Qbox.

Items show without a picture after the conversion

The picture is not in ox_inventory/web/images. Copy your item pictures there. Each one must be named after its item.

Next Steps

Official documentation and repository references