
FiveM Server Installation (2026)
This guide installs a clean, modern FiveM dedicated server using the latest artifacts and txAdmin. It works the same on a VPS, a dedicated box or a home machine used for testing.
Requirements
- Windows Server 2019+ / Windows 10+, or Linux (Debian 11+/Ubuntu 22.04+)
- A high single-thread CPU, NVMe storage and 8 GB+ RAM
- A Cfx.re account for your server license key
- MySQL 8 or MariaDB 10.6+ (for framework servers)
Step 1: Download the server artifact
Grab the latest recommended artifact for your OS from the official Cfx.re artifacts page. Extract it to a folder such as C:\FXServer\server (Windows) or ~/FXServer/server (Linux). Keep your server data (resources + cfg) in a separate folder, e.g. server-data.
Step 2: Get a server license key
Log in to the Cfx.re keymaster portal, register a new key for your machine's IP, and copy it. You will paste it into server.cfg as sv_licenseKey.
Step 3: First run with txAdmin
txAdmin ships inside the artifact. Start the server once and it launches txAdmin on a local port (default 40120).
# Linux
cd ~/FXServer/server
./run.sh +set serverProfile default +set txAdminPort 40120:: Windows
FXServer.exe +set txAdminPort 40120Open http://your-ip:40120, create the admin account, and use the recipe deployer to spin up a base server or a full QBCore/ESX build automatically.
Step 4: A clean server.cfg
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
sv_hostname "My FiveM Roleplay | qbcore.store"
sv_maxclients 64
onesync on
set mysql_connection_string "mysql://user:pass@localhost/database?charset=utf8mb4"
set steam_webApiKey "your_steam_web_api_key"
# ensure resources in the right order
ensure oxmysql
ensure qb-core
sv_licenseKey "your_cfx_license_key"Step 5: Open the ports
Allow TCP+UDP 30120 (game) through your firewall, and keep 40120 (txAdmin) restricted to your own IP. On Linux use ufw; on Windows add inbound rules.
Common mistakes
- Using a stale artifact — always start from a recent recommended build.
- Wrong resource order (a framework must load after oxmysql).
- Forgetting
onesync on, which caps you at 32 slots.
If you would rather skip weeks of wiring, our QBCore Royale Edition all-in-one pack ships pre-configured with the latest artifacts, database and scripts so you can launch in minutes instead of days.
What You Will Learn
This Server Setup tutorial focuses on practical outcomes for FiveM scripting and QB Core development. By following the steps in FiveM Server Installation (2026): Artifacts, txAdmin & server.cfg, you will understand how the topic fits into a real server workflow and how to apply it safely.
You will learn the reasoning behind the implementation choices (especially for beginner topics), so you can make the same decisions again for future resources. The goal is to reduce trial-and-error, improve consistency across updates, and help your team ship changes without breaking gameplay.
- Identify the correct use case for this approach in a QB Core or FiveM environment
- Implement the key concepts with an install-ready workflow
- Validate compatibility and avoid common setup conflicts
- Apply best practices to keep your server stable over time
Why This Matters
When scripts, configs, and documentation are aligned with your server architecture, you reduce maintenance overhead. That means fewer upgrade surprises, faster onboarding for new admins, and a more reliable experience for your players.
FAQ
Do I need advanced knowledge? This tutorial is matched to a Beginner difficulty level, and the steps are designed to build confidence without assuming everything is already known.
Will this work on my QB Core server? The tutorial emphasizes compatibility and integration checks so you can confirm requirements before installing.
How do I apply this to my next update? Use the same workflow and validation approach described here, then adapt the final details to your server’s setup.