Setting up a FiveM server on your dedicated machine
FiveM Setup on a Windows Dedicated Machine
This guide walks you through installing a FiveM dedicated server on a Windows machine and reaching first boot. Unlike our Pterodactyl-managed games, FiveM on Windows is a standalone install that you run directly on the machine. This guide assumes you have rented a Windows dedicated server through us or own one.
FiveM is the multiplayer modification framework for Grand Theft Auto V. Servers run via the FXServer artifact provided by CFX.re.
Once your server boots, continue to Configuration, then Running as a Service for production setup.
Prerequisites
Before you start, you need:
- A Windows Server 2019, 2022, or Windows 10/11 Pro dedicated machine
- Administrator access (RDP into the machine)
- A legitimate copy of GTA V on the host's Steam, Epic, or Rockstar Launcher (FiveM does not require it on the server itself, only on clients)
- A Cfx.re account with a generated license key (free at
keymaster.fivem.net) - A MariaDB or MySQL server if you plan to run resources that need a database (most ESX/QBCore frameworks do; see Database and Frameworks)
Hardware Recommendations
| Player Count | CPU | RAM | Storage |
|---|---|---|---|
| 32 | 4 cores, 3.5+ GHz | 8 GB | 50 GB SSD |
| 64 | 6 cores, 3.5+ GHz | 16 GB | 100 GB SSD |
| 128 | 8 cores, 4.0+ GHz | 32 GB | 200 GB NVMe |
| 200+ | 12+ cores, high clock | 64 GB | 500 GB NVMe |
FiveM is heavily single-thread bound, so per-core clock speed matters more than core count. Server clock speeds at or above 4.0 GHz produce noticeably smoother gameplay.
Step 1: Generate a License Key
- Go to
keymaster.fivem.netand sign in with your Cfx.re account. - Click Generate.
- Choose Dedicated Server as the type.
- Enter your server's public IP address (or the FQDN you plan to use).
- Copy the generated license key (long alphanumeric string starting with
cfxk_).
Store this key safely. You will paste it into server.cfg during Configuration.
Step 2: Download the FXServer Artifact
- Go to
runtime.fivem.net/artifacts/fivem/build_server_windows/master/. - The page lists every build, newest at the bottom. Pick a build labeled Recommended or Latest. Avoid builds labeled with the optional flag unless you specifically want bleeding-edge.
- Right-click the
server.7zfile link inside the build folder and copy the URL. - On your Windows server, RDP in, open PowerShell as Administrator, and run:
$url = "PASTE_THE_DOWNLOAD_URL" $dest = "C:\FXServer\server.7z" New-Item -Path "C:\FXServer" -ItemType Directory -Force Invoke-WebRequest -Uri $url -OutFile $dest
- Install 7-Zip from
7-zip.orgif you do not have it. - Extract
C:\FXServer\server.7ztoC:\FXServer\. After extraction,C:\FXServer\FXServer.exeshould exist.
Step 3: Create the Server Data Folder
Server artifacts (the binary) and server data (your config, resources, database connections) live in separate folders. This separation is intentional and important: artifact updates never touch your data.
New-Item -Path "C:\FXServer-data" -ItemType Directory -Force
Clone the official Cfx.re server-data template into this folder using Git. Install Git first if needed from git-scm.com:
cd C:\FXServer-data git clone https://github.com/citizenfx/cfx-server-data.git .
You should now see resources/, server.cfg, and other files inside C:\FXServer-data.
Step 4: First Boot
Before a full production setup, do a quick test boot to confirm the artifact runs. You will configure server.cfg properly in the next guide, but the cloned template includes a minimal default you can launch.
From PowerShell:
cd C:\FXServer-data C:\FXServer\FXServer.exe +exec server.cfg
Output should scroll past with resource startup messages. The final indicator that the server is healthy:
Authenticating server license key... Server license key authentication succeeded. Started resource ... Server is up and running.
If you have not configured your license key yet, the license authentication step will fail. That is expected at this stage; continue to Configuration to set it up properly.
Once configured, open the FiveM client on your computer, press F8, type connect YOUR_SERVER_IP:30120, and you should connect.
What to Read Next
- Configuration sets up
server.cfgand firewall ports (do this next) - Running as a Service for production: NSSM or txAdmin
- Database and Frameworks for ESX, QBCore, and MySQL
- OneSync, Updates, and Backups for scaling past 32 players and ongoing maintenance