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.

- 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
On this page
- Direct Answer
- QBCore to Qbox migration at a glance
- Is QBCore deprecated? What its maintainers and txAdmin say in 2026
- What carries over from QBCore to Qbox and what is lost
- Qbox requirements: MariaDB 10.9 or newer and FXServer build 10731 or newer
- Step 1: Back up the live server and database
- Step 2: List your resources and find the Qbox replacements
- Step 3: Build the Qbox test server next to the live one
- Step 4: Move your settings to the test server
- Step 5: Run QBCore scripts through the Qbox bridge
- Step 6: Convert a copy of the QBCore database
- Step 7: Convert qb-inventory to ox_inventory with convertqbinventory
- Step 8: Test with real characters, then go live
- Rollback plan: how to go back to QBCore
- Troubleshooting
- Next Steps
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.”
| Part | What you do | Where it happens | Live QBCore server |
|---|---|---|---|
| 1. Prepare | Check MariaDB, back up, list your resources | Live server, read-only | Keeps running |
| 2. Build | Deploy the Qbox recipe as a second server | Test server | Keeps running |
| 3. Settings | Move server.cfg lines, staff, jobs, gangs, items, vehicles and your own scripts | Test server | Keeps running |
| 4. Database | Load a copy of the database and convert it in nine steps | The copy, qbox_migration | Keeps running |
| 5. Test | Play with real characters and your staff | Test server | Keeps running |
| 6. Go live | Repeat the database steps on a fresh copy and switch players over | Live machine | Closed 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 over | How |
|---|---|
| Characters, names, citizen IDs and character details | Automatically |
| Cash, bank and crypto balances | Automatically |
| Jobs, gangs and grades | After the convertjobs console command |
| Items in player inventories, stashes, trunks and gloveboxes | After the convertqbinventory console command |
| Owned vehicles with their mods | After a few database commands |
| Job and gang bank accounts | After one database command |
| Clothing | After the in-game command /migrateskins qb-clothing |
| Phone numbers and mails | After one database command |
| Lost | Reason given by Qbox |
|---|---|
| Houses and apartments, and the items in their stashes | Qbox uses a different housing system; players pick a new apartment |
| Saved outfits | The clothing script stores them differently |
| Phone contacts, messages, photos and tweets | Qbox uses a different phone |
| Weapon attachments | ox_inventory stores attachments differently |
| Bank transaction history | Balances come along, the history does not |
| Weed plants | They 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();
| Result | Meaning |
|---|---|
A value such as 11.8.3-MariaDB, at 10.9 or higher | Supported |
10.4.x-MariaDB or another version below 10.9 | Too old; Qbox calls this common with XAMPP |
A number without the word MariaDB, such as 8.0.36 | MySQL, 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_corev1.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
.sqlfile 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=VALUElines torun.sh, before itsexecline, where a Windows.batfile usessetlines. 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-dumpclient writes the same kind of file. Dumping one database by name writes noCREATE DATABASEstatement, which is what Qbox’s copy procedure needs.--single-transactiondumps InnoDB tables in a consistent state without blocking the running server, and--skip-add-drop-tableleaves out theDROP TABLElines that are on by default. With-pand 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.
- 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.
- Check the file. Open it in VS Code and search for
CREATE DATABASE, then forDROP 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. - Copy the server folder, the one that contains
server.cfgandresources. In txAdmin, Settings, then FXServer, shows it as Server Data Folder. - List every edit made inside
qb-core. Those changes do not carry over and have to be redone on Qbox. - 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 resource | On Qbox | Note |
|---|---|---|
qb-core | qbx_core | Answers to the name qb-core and carries the bridge |
qb-multicharacter, connectqueue | Built into qbx_core | Queue toggled with qbx:enableQueue |
qb-inventory, qb-weapons, qb-shops, qb-crafting | ox_inventory | Ammo and attachments get different names |
qb-target | ox_target | No qb-target exports |
qb-menu, qb-input, progressbar | ox_lib | QBCore.Functions.Progressbar still works |
qb-banking, qb-management | Renewed-Banking, qbx_management | Society balances need copying |
qb-clothing | illenium-appearance | Skins convert, saved outfits do not |
qb-apartments, qb-houses, qb-interior | qbx_properties | No import |
qb-phone | NPWD with qbx_npwd | Numbers and mail carry over |
qb-garages | qbx_garages and qbx_vehicles | Vehicles need a few fixes |
qb-vehicleshop | qbx_vehicleshop | Its migrate.sql keeps financing |
qb-fuel | ox_fuel | Fuel lives in the fuel state bag |
qb-policejob, qb-ambulancejob | qbx_police, qbx_ambulancejob and qbx_medical | |
qb-doorlock | ox_doorlock | Converts qb-doorlock config files |
qb-hotdogjob, qb-crypto | None | The 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.
- Create the folders. Make
C:\FXServer-qboxand, inside it, a folder calledserver. - 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.7zintoC:\FXServer-qbox\server. - Create the start file. Save the text below as
C:\FXServer-qbox\start-test-server.bat. - Start it. Double-click the file, open
http://localhost:40125, enter the PIN and follow txAdmin’s setup with the second registration key. - Deploy the recipe. Choose Popular Recipes, then the Qbox entry. Qbox’s docs call it QBox Framework; txAdmin’s recipe index names it Qbox.
- 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.”
- 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.
| Copy | Do not copy |
|---|---|
sv_maxclients | sv_licenseKey (the test server has its own key) |
sv_enforceGameBuild, only if your old number is higher | endpoint_add_tcp and endpoint_add_udp |
set and setr lines that belong to your own scripts | mysql_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/setjoband/givemoney, work only after the admin types/optinin 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’spermissions.cfgdoes 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:
- Fix the top of the file. Delete the lines above
QBShared.Jobs = {and change that line toreturn {. IfForceJobDefaultDutyAtLoginwasfalsein your file, set the same line inqbx_core/shared/main.luatofalse. In the gangs file, do the same withQBShared.Gangs = {. - 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]. - Add
bankAuth = trueto boss grades. Replaceisboss = truewithisboss = true, bankAuth = true. Boss grades need it to use the job’s bank account, becauseRenewed-Bankingchecks this instead ofisboss.
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.
- Paste your QBCore items from
qb-core/shared/items.luainto the test server’sqbx_core/shared/items.lua. - Run
convertqbitemsin the Live Console. It writes the itemsox_inventorydoes not have yet toqbx_core/converted.lua, already in the right format. - Copy those entries into
ox_inventory/data/items.lua. - Copy the item images from
qb-inventory/html/imagestoox_inventory/web/images, skipping files that already exist. - Restart, then empty
qbx_core/shared/items.luaby replacing its content withreturn {}.
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_coreanswers to the nameqb-core, so scripts that depend on it start normally.exports['qb-core']:GetCoreObject()still works and returns the familiarQBCoreobject.- 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:
| Check | What to look for | What to do |
|---|---|---|
| Config | A framework, inventory, target or menu option | Choose qbx or qbox if offered, otherwise qb; choose the ox option for inventory, target and menus |
fxmanifest.lua | A dependency on a QBCore resource | qb-core, qb-vehiclekeys, qb-weathersync and qb-management are among the names Qbox answers to; qb-target and qb-inventory are not |
| Code search | qb-inventory, qb-target, qb-menu, qb-input, LegacyFuel | Switch the script to its ox option or get a Qbox version from its author |
| Escrow | A .fxap file in the folder | Only 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.”
-
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_migrationand set Collation toutf8mb4_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’sserver.cfg, change only the database name inmysql_connection_string. The count on the copy must match.SELECT COUNT(*) AS characters FROM players; -
Fix the collation. Qbox’s tables are linked to your
playerstable, 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'; -
Run the Qbox SQL files. First move QBCore’s outfits table aside with the statement below. Then run, in this order,
qbox.sqlfrom the Qbox recipe,qbx_core.sql,vehicles.sql,vehshop.sqlandmigrate.sql, followed by the SQL files of the optional resources you use, which the official page lists.qbox.sqlis downloaded from the recipe’s GitHub repository; the others sit in the test server’sresources/[qbx]folders. Runmigrate.sqlonly once: it moves vehicle financing into a new table. AfterwardsSELECT COUNT(*) FROM player_groups;must answer 0, not an error.RENAME TABLE IF EXISTS `player_outfits` TO `player_outfits_qbcore`; -
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 ascasinogarage.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; -
Copy job and gang bank balances. Personal balances come along automatically. Society money does not, because
Renewed-Bankingkeeps it in its ownbank_accounts_newtable. The official page gives oneINSERTstatement for current QBCore and a second one for older servers that used amanagement_fundstable. -
Start the test server and run
convertjobs. Do not join yet. Type the command in the Live Console once the server has started without aSCRIPT ERROR. It fills theplayer_groupstable 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. -
Convert inventories as described in Step 7 below.
-
Convert clothing. Join alone, with
group.godon your account, and type/migrateskins qb-clothingin 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. -
Decide on housing, phone and doors. Every existing character is asked to pick a new apartment on the next login.
ox_doorlockconvertsqb-doorlockconfig files: copy them into itsconvertfolder 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 QBCore | After the conversion |
|---|---|
| Each character’s inventory | The same character’s inventory |
| Stashes | Stashes with the same name |
| Trunks and gloveboxes | The trunk and glovebox of the owned vehicle with that plate |
| Police evidence drawers | Evidence stashes |
- Finish the items first.
ox_inventorythrows away items it does not know the moment a player opens their inventory. - Empty the server. The real conversion refuses to run while players are online.
- Do a dry run. In the Live Console, type
convertqbinventory dryrun. It changes nothing and prints what a real run would do. - Read every
[WARN]line. The one that costs items starts withItems not defined in ox_inventory: the items it lists would be lost. Add each of them toox_inventory/data/items.lua, restart and repeat the dry run. QBCore ammo such aspistol_ammoshows up there too: add it as an item, or accept that it is lost. - Convert for real with
convertqbinventory. - 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_backuptable 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:slotsallows, the dry run warns you. The recipe’sox.cfgsets 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
moneyitem.
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:
- 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.
- 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.
- 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.
- 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\serverinto the folder with the live server’sFXServer.exe, replace the files, and start the live txAdmin again the way you always do. - 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 answerqbox_livefirst. - Edit the Qbox
server.cfg. Set the database name toqbox_live, change 30125 to 30120 in any endpoint lines, and put your live key insv_licenseKeyso the server keeps its place in the server list. - Close Qbox to the public. Set
closed = trueunderserverinqbx_core/config/server.lua, and addadd_ace group.admin qbadmin.join allowtopermissions.cfg. - 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.
- Run the console steps with nobody connected:
convertjobs,convertqbinventory dryrun,convertqbinventory, with the check after each one. For doors, copy your originalqb-doorlockfiles intoox_doorlock/convertagain and typeensure ox_doorlockin the Live Console. For clothing, join alone and run/migrateskins qb-clothing. - Open the server. After a staff check, an admin runs
/optin, then/openserver. Setclosedback tofalsein 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 this | Why | Until |
|---|---|---|
The final .sql export of the QBCore database | The last state of the old server | You are sure you are staying on Qbox |
| The QBCore server folder | Its resources and server.cfg are what txAdmin points back to | Same |
| The QBCore Server Data Folder and CFG File Path | You paste them back into txAdmin | Same |
| A copy of the old FXServer files | To return to exactly the same server version | Same |
| The original QBCore database, untouched | Qbox calls it “your way back” | Same |
| A rollback deadline | After it, you fix problems on Qbox instead | Go-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:
- Stop the Qbox server.
- 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.
- 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
- Compare your options once more in QBCore vs Qbox vs ESX if you have not committed to Qbox yet.
- Deploy the test server with the txAdmin recipe guide.
- Prepare the database server with the MariaDB and HeidiSQL guide.
- Add the items the dry run reported as missing with how to add items to ox_inventory.
FiveM scripts from FiveCrate
Listed in the FiveCrate catalogue now.
Official documentation and repository references
- Qbox Docs: Migrating from QBCore
- Qbox Docs: Migrating from QBCore, Server setup
- Qbox Docs: Migrating from QBCore, Your own scripts
- Qbox Docs: Migrating from QBCore, Database
- Qbox Docs: Migrating from QBCore, Going live
- Qbox: qbx_core README
- Qbox: qbx_core releases
- Cfx.re Forum: QBCore Framework [INACTIVE]
Related guides
FiveM Database Setup: MariaDB and HeidiSQL Guide
FiveM database setup step by step: install MariaDB instead of XAMPP, create a database and an account, connect HeidiSQL and oxmysql, then import SQL files.
How to Add Items to ox_inventory (Qbox, ESX, QBCore)
How to add items to ox_inventory: define them in data/items.lua, add PNG images, make them usable, and what changes on Qbox, ESX and QBCore servers.
Fix: attempt to index a nil value (global 'QBCore')
Fix attempt to index a nil value (global 'QBCore') on QBCore and Qbox: replace the removed import.lua with GetCoreObject, fix start order, check the bridge.
QBCore vs ESX vs Qbox: Which FiveM Framework in 2026?
QBCore vs ESX vs Qbox in 2026, from official sources: what QBCore leaving FiveM means, how Qbox and ESX Legacy differ, and which framework fits your scripts.
txAdmin Recipes Explained: Deploy Qbox, ESX or Default
How a txAdmin recipe builds a FiveM server: the current Popular Recipes list, each deployer step, database options, custom URLs and the QBCore deprecation.



