Skip to Content
FrameworksQBCoreInstallation
Report an error
Open in ChatGPTOpen in Claude

QBCore Installation

The txAdmin recipe is the supported path and the one this page recommends. The manual route is documented for people adding QBCoreย  to an existing server.

Prerequisites

โš ๏ธ

Do not use XAMPP. It bundles an outdated MySQL, is not built for a long-running production workload, and is a recurring cause of data loss on FiveM servers. Install MariaDBย  directly.

Method 1 โ€” txAdmin recipe

Start FXServer

Run FXServer.exe on Windows or run.sh on Linux. txAdmin opens its setup wizard in a browser tab.

Link your Cfx.re account

Sign in, then set a backup password so you can still reach txAdmin if you lose access to the Cfx.re account.

Choose the deployment type

Select Popular Recipes, then pick the QBCore recipe.

Set the resource path

Change the default to a dedicated folder. Moving it later means editing absolute paths in server.cfg and in txAdmin.

Enter database credentials

Give the deployer your MariaDB host, user and password. It creates the schema and imports the SQL for you.

Run the recipe and start the server

Wait for the deployer to finish, then start the server from the txAdmin dashboard.

Follow the official QBCore documentationย  and publisher-maintained txAdmin recipeย  for current framework-specific steps.

Method 2 โ€” manual installation

Use this when you are adding QBCore to a server that already exists.

Clone the core resource

Add oxmysql

Download the latest oxmysql release and extract it into your resources folder.

Import the SQL

Import qb-core/qb-core.sql into your database. Later resources ship their own SQL files โ€” import each as you add it.

Configure server.cfg

set mysql_connection_string โ€œmysql://user:password@localhost/qbcore?charset=utf8mb4โ€ set onesync on ensure oxmysql ensure qb-core

โ„น๏ธ

The database connection is set in server.cfg through the oxmysql connection string, not in qb-core/config.lua. Guides that tell you to edit database credentials inside the resource are out of date.

Validation

Persistence is the test that matters. A server that boots but does not save is usually a database user without write permission, or a connection string pointing at the wrong schema.

Rollback

If the deploy fails, revert rather than debug a half-installed server:

  1. Stop FXServer
  2. Drop and recreate the database, then restore your last dump
  3. Restore the previous resources folder and server.cfg
  4. Start the server and confirm players can connect before trying again

Keep the previous resources folder on disk until the new install has run for a full week. See Backups.

Next steps