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
cd resources/[qb]
git clone https://github.com/qbcore-fivem/qb-core.gitย
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:
- Stop FXServer
- Drop and recreate the database, then restore your last dump
- Restore the previous
resourcesfolder andserver.cfg - 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
- QBCore structure โ the core object and player data
- QBCore resources โ what ships and what to swap
- Setting permissionsย โ make yourself admin