Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

How to Make an ESX or QBCore Server: Recipes, Database and Admin Setup

By Luke, RPScripts

On this page

An ESX or QBCore server is a FiveM server plus a framework resource set and a MariaDB database, deployed from a txAdmin recipe. Pick the ESX Legacy recipe for ESX and the Qbox recipe for QBCore resources, because txAdmin's recipe list dropped the QBCore recipe on 29 October 2026.

For the key, download and firewall, follow our guide to creating a FiveM server with txAdmin and return at the recipe step; this page covers what the framework adds.

What is an ESX or QBCore server?

It is FXServer plus a framework (the shared player, job, money and inventory layer), the resources built on it, and a MySQL-compatible database. A txAdmin recipe automates the setup, from downloading resources to configuring server.cfg. "ESX server" also returns VMware ESXi, a hypervisor; this page is about the FiveM framework.

How do ESX Legacy, QBCore and Qbox differ?

From each project's docs and repositories, read on 26 November 2026 (QBCore's GitHub organization is now qbcore-fivem):

 ESX LegacyQBCoreQbox
txAdmin recipe"ESX Legacy""QBCore Framework", deprecated, dropped from the index on 29 October 2026"Qbox"
DatabaseMariaDB, via oxmysqlMariaDB, via oxmysqlMariaDB 10.9 or newer, via oxmysql; no MySQL
Core / inventory in the recipees_extended / esx_inventoryqb-core / qb-inventoryqbx_core (with a qb-core bridge) / ox_inventory

Which one fits depends on the scripts you want and the code your team can maintain; our comparison of the FiveM frameworks covers that decision.

How do I deploy the recipe in txAdmin?

At the recipe choice pick Popular Recipes; all three frameworks need a database server. The current txAdmin setup page reads indexv4.json from the txAdmin-recipes repository, which lists ESX Legacy and Qbox, not QBCore.

Prepare the database

Install MariaDB first, not XAMPP. The deployer asks for host, port, user and password and writes the connection string into server.cfg. oxmysql accepts this format:

set mysql_connection_string "mysql://user:password@localhost:3306/database"

Use set, not setr. oxmysql says the characters ; , / ? : @ & = + $ # can break the string: avoid them or switch string format.

ESX Legacy

The ESX installation guide picks ESX Legacy and wants the resource folder to exist beforehand, because txAdmin will not create it. The recipe installs es_extended, the core resources and addons, oxmysql, ox_lib and pma-voice, then imports legacy.sql. The guide types in a database name (esx_legacy), but the txAdmin-recipes guidelines require recipes to accept the name txAdmin generates, so leave it to txAdmin.

QBCore

QBCore's Windows guide still says to choose "QBCore Framework" and describes an older way to get the server key; today you create keys in the Cfx.re Portal. Its docs also say a new implementation is being developed privately for the Mantle platform, QBCore has withdrawn from other platforms, and the existing guides cover the previous one. qb-core's last code merge was in June 2026; the commits since are housekeeping.

txAdmin can import a recipe by URL and qbcore.yaml is still in the QBCore recipe repository; we did not run it. Qbox vs QBCore explains the trade-off; for a finished city there are QBCore server packs.

Qbox

The Qbox guide selects the Qbox recipe, which installs qbx_core, ox_lib, ox_target, oxmysql and ox_inventory and imports its SQL files.

How do I get admin rights after the first start?

All three recipes put the placeholder addPrincipalsMaster in server.cfg. txAdmin replaces it with add_principal identifier.<id> group.admin for each identifier of the account that deployed the recipe, or with a comment if that account has none.

ESX Legacy

The recipe gives group.admin the command ACE, and the txAdmin-recipes guidelines ask frameworks to treat the ACE admin group as framework admins, citing ESX Legacy as the example. As that admin you can promote others with /setgroup playerId group, for example /setgroup 1 admin; admin is the highest group by default.

QBCore

QBCore's permissions guide adds a player by license identifier in server.cfg:

add_principal identifier.license:xxxxxx qbcore.god
add_principal identifier.license:xxxxxx qbcore.mod

With permission already, /addpermission 1 god does the same in game.

Qbox

Qbox loads permissions.cfg from server.cfg. It defines group.admin, group.mod and group.support. The Qbox migration guide adds staff by fivem: identifier, shown in txAdmin under Players, then the IDs tab:

add_principal identifier.fivem:1234567 group.admin

Where do the framework settings live?

ESX Legacy keeps them in es_extended/shared/config/main.lua, with jobs and items in the database tables jobs, job_grades and items. QBCore uses qb-core/config.lua and qb-core/shared/. Qbox uses qbx: convars in server.cfg, qbx_core/config/client.lua and qbx_core/shared/ for jobs and gangs; its FAQ says to add items only in ox_inventory/data/items.lua, because qbx_core/shared/items.lua is deprecated. The Qbox convars page documents every qbx: convar, and the server.cfg reference covers the rest of the file.

In what order should resources start?

Dependencies, then the core, then everything built on it. Excerpts from the recipes' server.cfg:

# ESX Legacy
ensure oxmysql
ensure esx_lib
ensure es_extended
ensure [core]
ensure [standalone]
ensure [esx_addons]

# QBCore
ensure qb-core
ensure [qb]
ensure [standalone]

# Qbox
ensure ox_lib
ensure qbx_core
ensure ox_target
ensure [ox]
ensure [qbx]

oxmysql's docs say to start it first; the QBCore and Qbox recipes keep it in a folder category, but their manifests declare it as a dependency, which loads first per the Cfx.re manifest reference. A name in brackets is a category, and ensure [core] starts everything in it. The server.cfg builder and checker reviews your file before a restart.

Check which framework a script names before you add it: ESX scripts and QBCore scripts are separate lines. Qbox's FAQ says QBCore scripts work on Qbox "in most cases" through the bridge, except undocumented qb-core use and direct database access; scripts that depend on qb-inventory, qb-target or qb-menu need attention.

Do I need pre-built server files?

A clean recipe gives you the framework and a fresh database. A server pack adds assembled scripts, maps, vehicles and a database file, and still needs your key, credentials and testing. Our server pack comparison lists each pack's framework and requirements, and the shop has ESX server packs.

Be careful with "free server files" from Discord or file sites: leaked or "free" copies of paid scripts and packs can carry backdoors while the visible code works as advertised. Run an unfamiliar download through the FiveM backdoor scanner before it touches a server with players.

Why does the server fail on its first start?

Symptom (as titled in the docs)Cause, as documented
ESX Multicharacter couldn't connect to the databaseA wrong MySQL string in server.cfg, or the database is not working.
Error ESX = nilUpdate es_extended to the latest version.
No such export GetCoreObject in resource qbx_coreQbox has no core object; call exports['qb-core']:GetCoreObject() and the bridge answers.
Stuck in loading screen (Qbox)A multicharacter resource never shuts it down: set setr loadscreen:externalShutdown to false.

Sources