PROMO20% OFF with code QY3UJAEZ59 - Limited time offer!
Gaming

Install a FiveM Server on Windows Server

Complete guide to install and configure a FiveM GTA V server on Windows Server. License, txAdmin, optimization, and best practices.

๐Ÿ“–7 min read
โšกIntermediate
๐Ÿ“…1/14/2026

Install a FiveM Server on Windows Server

Want to create your own GTA V multiplayer server with FiveM? This comprehensive guide walks you through the complete installation and configuration process on Windows Server.


๐Ÿ“‹ Before You Begin

โœ… A Windows Server VPS (Windows Server 2019/2022 recommended) โœ… At least 8 GB RAM (16 GB recommended for RP servers) โœ… RDP access to your server โœ… A CFX.re account to get your license โœ… Basic command line knowledge


1

Get Your FiveM License Key

Before installing anything, you need an official license from FiveM.

Create an Account and Generate the Key

โ–ธ Steps on Keymaster
  1. Go to keymaster.fivem.net
  2. Log in with your CFX.re account (or create one)
  3. Click "New Server"
  4. Choose "Server Key" type
  5. Fill in the information:
    • Server name: Your server name
    • Server IP: Your VPS IP address
  6. Click "Generate"
  7. Copy the generated license key

โš ๏ธ Important

NEVER share your license key publicly. It's tied to your server IP and can be revoked if misused.


2

Prepare Windows Server

Install Visual C++ Redistributables

FiveM requires Visual C++ Redistributables to function.

โ–ธ Download and install
  1. Download Visual C++ 2019 Redistributable:
  2. Run the installer
  3. Restart the server if prompted

Create the Directory Structure

โ–ธ Create folders
# Open PowerShell as Administrator
# Create main directory
New-Item -ItemType Directory -Path "C:\FiveM-Server"

# Create subfolders
New-Item -ItemType Directory -Path "C:\FiveM-Server\server"
New-Item -ItemType Directory -Path "C:\FiveM-Server\server-data"

3

Download FiveM Artifacts

Artifacts are the FiveM server files.

โ–ธ Download the latest version
  1. Go to FiveM Artifacts
  2. Download the latest version (top of the list)
  3. Extract the content to C:\FiveM-Server\server\

Or via PowerShell:

# Download the latest artifact
Invoke-WebRequest -Uri "https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/7290-d3f3d99d3283bd2ebf4cf8a668906d4dcbf33641/server.zip" -OutFile "C:\FiveM-Server\server.zip"

# Extract
Expand-Archive -Path "C:\FiveM-Server\server.zip" -DestinationPath "C:\FiveM-Server\server" -Force

๐Ÿ’ก Tip: Check runtime.fivem.net regularly for updates. A well-maintained server is more stable!


4

Configure Windows Firewall

Open Required Ports

โ–ธ PowerShell commands
# Open UDP port 30120 (Game)
New-NetFirewallRule -DisplayName "FiveM Server - Game" -Direction Inbound -Protocol UDP -LocalPort 30120 -Action Allow

# Open TCP port 30120 (HTTP)
New-NetFirewallRule -DisplayName "FiveM Server - HTTP" -Direction Inbound -Protocol TCP -LocalPort 30120 -Action Allow

# Open TCP port 40120 (txAdmin)
New-NetFirewallRule -DisplayName "FiveM Server - txAdmin" -Direction Inbound -Protocol TCP -LocalPort 40120 -Action Allow

โš ๏ธ Important

Also configure your VPS firewall (if applicable) to allow these ports. Check your provider's panel (AtmosNode Control Panel, OVH, etc.).


5

Install and Start txAdmin

txAdmin is the official FiveM server management interface.

First Launch

โ–ธ Start txAdmin
# Navigate to the server folder
cd C:\FiveM-Server\server

# Start txAdmin
.\FXServer.exe +set citizen_dir C:\FiveM-Server\server\citizen +set sv_licenseKey "YOUR_LICENSE_KEY" +set txAdminPort 40120

๐Ÿ’ก Replace YOUR_LICENSE_KEY with the key you generated in Step 1.

Initial Configuration

โ–ธ Access txAdmin
  1. Open your browser and go to: http://YOUR_SERVER_IP:40120
  2. Create an administrator account
  3. Choose a setup option:
    • Popular Recipe โ†’ Pre-configured template (ESX, QBCore, etc.)
    • Custom โ†’ Manual configuration
  4. Follow the installation wizard

โœ… txAdmin is now installed! You can manage your server from the web interface.


6

Configure server.cfg

โ–ธ Recommended server.cfg configuration
# License
sv_licenseKey "YOUR_LICENSE_KEY"

# Server Information
sv_hostname "^1My RP France Server ^7| ^2Recruitment Open"
sv_projectName "My Roleplay Server"
sv_projectDesc "Quality roleplay server on FiveM"

# Maximum Players
sv_maxclients 64

# Endpoint (Server IP)
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

# GTA V Version
sv_enforceGameBuild 2802

# Steam API Key (optional)
# sv_steamApiKey "YOUR_STEAM_API_KEY"

# Tags for server list
sets tags "roleplay, france, economy, whitelist"

# Language
sets locale "fr-FR"

# OneSync (required for +32 players)
set onesync on

# Script Hook (security)
sv_scriptHookAllowed 0

# Resources to start
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure rconlog

Important Parameters:

  • sv_maxclients โ†’ Maximum number of players (default: 32, max with OneSync: 2048)
  • sv_enforceGameBuild โ†’ Required GTA V version (2802 = latest)
  • endpoint_add_tcp/udp โ†’ Server ports
  • onesync โ†’ Enable for +32 players
  • sv_scriptHookAllowed โ†’ Disable for security

โš ๏ธ Security

NEVER share your sv_licenseKey or sv_steamApiKey publicly!


7

Add Resources (Mods)

ESX Framework (Roleplay)

โ–ธ Install ESX Legacy
# Navigate to resources folder
cd C:\FiveM-Server\server-data\resources

# Clone ESX Legacy
git clone https://github.com/esx-framework/esx_core.git [esx]
โ–ธ Add to server.cfg
# ESX Framework
ensure es_extended
ensure esx_menu_default
ensure esx_menu_dialog
ensure esx_menu_list

QBCore Framework (Alternative)

โ–ธ Install QBCore
# Download QBCore
git clone https://github.com/qbcore-framework/qb-core.git [qb]

Popular Resources

Recommended resources:

ResourceDescription
gcphonePhone system for RP
esx_policejobPolice job
esx_ambulancejobEMS job
mythic_hospitalAdvanced hospital system
pma-voiceVoice proximity (VOIP)
esx_vehicleshopCar dealership

๐Ÿ’ก Find resources on forum.cfx.re or GitHub.


8

Performance Optimization

Optimize server.cfg

โ–ธ Performance parameters
# Increase thread pool
set sv_threadedStreamingEnabled true

# Optimize network performance
set sv_maxPing 0
set sv_pureLevel 1

# Resource limits
set sv_resourceScriptTickCount 10000
set sv_scriptTickInterval 0

RAM and CPU Optimization

โ–ธ Windows Server settings
  1. Open Task Manager
  2. Right-click on FXServer.exe
  3. Select Set Priority โ†’ High
  4. Go to Details tab
  5. Right-click โ†’ Set Affinity โ†’ Select all CPU cores

9

Auto-Start Configuration

Create a Startup Script

โ–ธ Create start.bat
@echo off
cd /d C:\FiveM-Server\server

:start
echo Starting FiveM Server...
FXServer.exe +exec server.cfg

echo Server stopped. Restarting in 10 seconds...
timeout /t 10
goto start
โ–ธ Save as

Save this file as C:\FiveM-Server\start.bat

Create a Windows Service

โ–ธ Using NSSM (Non-Sucking Service Manager)
# Download NSSM
Invoke-WebRequest -Uri "https://nssm.cc/release/nssm-2.24.zip" -OutFile "C:\nssm.zip"
Expand-Archive -Path "C:\nssm.zip" -DestinationPath "C:\nssm"

# Install the service
C:\nssm\nssm-2.24\win64\nssm.exe install FiveM-Server "C:\FiveM-Server\start.bat"

# Start the service
Start-Service FiveM-Server

10

Manage Your Server with txAdmin

Key Features

Main txAdmin features:

FeatureDescription
DashboardReal-time stats and monitoring
ConsoleInteractive server console
ResourcesManage and restart resources
PlayersPlayer list, kick, ban
DatabaseIntegrated database management
BackupsAutomatic server backups
LogsView and search logs

Useful Commands

Start the server

cd C:\FiveM-Server\server
.\FXServer.exe +exec server.cfg

View logs in real-time

Get-Content C:\FiveM-Server\server-data\logs\server.log -Wait

Restart a resource

Access txAdmin โ†’ Resources โ†’ Restart

Manage players

Access txAdmin โ†’ Players โ†’ Actions

txAdmin Shortcuts

Keyboard shortcuts:

ShortcutAction
Ctrl + CStop the server (console)
refreshRefresh resource list
restart [resource]Restart a resource
stop [resource]Stop a resource
start [resource]Start a resource

๐Ÿ’ฌ Need Help?

If you encounter any difficulties:


๐ŸŽฎ Congratulations!

Your FiveM server is now installed and configured. You can now add resources, customize your server, and welcome players!

Next Steps:

  • Install an RP framework (ESX or QBCore)
  • Add custom resources and scripts
  • Configure player whitelist
  • Set up backups with txAdmin

Tags

#fivem#windows#game server#gta v#roleplay
Questions? Letโ€™s chat.
contact [at] atmosnode [dot] com
Live Chat
AtmosNode
ยฉ 2025 AtmosNode.com โ€ข Company number: 899 139 182
Loading...
Company not subject to VAT

๐Ÿ”’ Secure Payment Methods (Crypto accepted)

Visa
MasterCard
PayPal
Apple Pay
Google Pay