☀️ 50% off your first month:SUMMER26
FiveMFivem·Mods & Customization

How to Install ESX or QBCore on Your FiveM Server

Install ESX or QBCore on your FiveM server: create the MySQL database, upload the framework to resources, and set the right ensure order in server.cfg.

Magnus·
5 min read
·
Jul 26, 2026
·
Last updated: Jul 28, 2026
Table of Contents

ESX and QBCore are the two frameworks nearly every FiveM roleplay server is built on. They give you jobs, money, inventory, and the shared data layer that scripts hook into. This guide shows how to install either one on a DoomHosting FiveM server, including the MySQL database they both need and the correct ensure order in your server.cfg.

ESX or QBCore: which framework should I choose?

Both are free, open source, and MySQL-backed, so the choice is about the ecosystem you want to build on:

  • ESX is the older and more widely used framework. There are more third-party jobs, scripts, and tutorials written for it, so it is the safer pick if you plan to buy or download a lot of ready-made resources.
  • QBCore is newer, more modular, and many developers find its code cleaner to extend. If you have a scripter on your team or want to write a lot of custom logic, QBCore is popular for that.

You cannot run both at once. Pick one, build your server around it, and stick with it. Whichever you choose, the install steps below are the same shape: create a database, upload the framework, wire it into server.cfg.

Before you start: license key and database

Two things have to be in place before a framework will load.

First, your server needs a valid CFX license key or FXServer will not boot at all. The panel asks for it the first time you press Start. If you have not set one yet, follow how to get a FiveM license key first.

The FiveM license key dialog in the DoomHosting panel

Second, ESX and QBCore both store everything in a MySQL database. Your DoomHosting FiveM server includes one. Open the Databases tab in the panel and click New database. The panel creates the database and shows you the host, database name, username, and password. Keep this tab open, you will need those four values in a moment.

Creating a MySQL database in the DoomHosting Databases tab

There is no phpMyAdmin on the server, so to import a framework's SQL you connect to that same host from a free MySQL client on your PC (HeidiSQL, DBeaver, or MySQL Workbench). Use the host, username, and password from the Databases tab, then run the framework's .sql file against your database.

How do I install ESX on a FiveM server?

  1. Download the latest ESX release (the es_extended resource) and oxmysql from their official GitHub releases.

  2. Open the Files tab, go into the resources folder, and upload es_extended and oxmysql there. This is where every resource lives.

    The resources folder in the DoomHosting file manager

  3. Import ESX's SQL file into your database using your MySQL client (step above). This creates the users, jobs, and other tables ESX expects.

  4. Open server.cfg in the file editor and add the database connection plus the ensure lines. Order matters: oxmysql and es_extended must load before anything that depends on them.

    set mysql_connection_string "mysql://USER:PASSWORD@HOST/DATABASE?charset=utf8mb4"
    
    ensure oxmysql
    ensure es_extended
    

    Editing server.cfg with the correct ensure order

  5. Restart the server from the panel. Watch the Console tab: you should see oxmysql connect and es_extended start with no red errors.

How do I install QBCore on a FiveM server?

The steps mirror ESX:

  1. Download the QBCore framework (qb-core) and oxmysql from the official QBCore GitHub.

  2. Upload both into the resources folder via the Files tab.

  3. Import QBCore's SQL dump into your database with your MySQL client.

  4. In server.cfg, set the connection string and ensure oxmysql before qb-core:

    set mysql_connection_string "mysql://USER:PASSWORD@HOST/DATABASE?charset=utf8mb4"
    
    ensure oxmysql
    ensure qb-core
    
  5. Restart and check the console for a clean start.

What order do resources go in server.cfg?

Dependencies first, dependents after. A resource that calls the database needs oxmysql already running; a job script needs the framework already running. A safe pattern:

ensure oxmysql
ensure es_extended     # or qb-core
ensure your-inventory
ensure your-jobs
ensure your-other-scripts

If you ensure a job resource before the framework, it errors on boot because the framework's exports do not exist yet.

How do I make myself admin?

On ESX, admin groups are assigned in the database or via a permissions resource, and the framework's own documentation covers the exact table. On QBCore, you add your license identifier to qb-core/shared/config.lua or use the in-game permissions. The quickest way to find your identifier: join the server once, then check the Console tab, where FXServer prints your license: identifier as you connect. Copy that value into the framework's admin config and restart.

Common errors

  • [oxmysql] failed to connect: the mysql_connection_string is wrong. Re-copy the host, database name, username, and password from the Databases tab. The database name is the full sNNN_name shown there, not just the short name you typed.
  • Unable to load resource es_extended / qb-core: the folder name in resources does not match the ensure line, or you unzipped it one level too deep (a folder inside a folder). The resource folder must contain fxmanifest.lua directly.
  • Framework starts but no tables: you skipped the SQL import, or imported it into a different database. Re-run the framework's .sql against the exact database from the Databases tab.
  • Everything loads but players spawn with no money/job: usually a missing dependency (an inventory or esx_* resource) or a wrong load order. Read the console top to bottom, the first red line is the real cause.

Next steps

Once the framework runs, you will add cars, jobs, and scripts on top of it. See how to add custom cars and scripts to your FiveM server for resource structure and streamed vehicles. If you prefer a web dashboard with one-click recipe deployment, set up txAdmin on your FiveM server, which can deploy a full ESX or QBCore base for you.

Need a server first? See FiveM server hosting or explore the full game control panel.

Fivem

Start your Fivem Server

High performance hosting with 24/7 support

More Fivem guides