FiveM Server Setup Guide 2026

Complete step-by-step tutorial to set up your own FiveM server

Free TutorialStep-by-Step GuideCode ExamplesTroubleshooting Tips
FiveM

FiveM Server Requirements

What You'll Need

Software Requirements

  • Grand Theft Auto V (Steam, Epic, or Rockstar version)
  • FiveM Server Files
  • Minimum 4GB RAM (8GB+ recommended)
  • Port 30120 forwarded
  • Visual C++ Redistributable 2019
  • Cfx.re account for server key

Hardware Requirements

Minimum (5-10 players)
  • • CPU: Intel Core 2 Quad CPU Q6600 @ 2.40GHz / AMD Phenom 9850 Quad-Core Processor
  • • RAM: 4 GB RAM
  • • Storage: 72 GB available space
  • • Network: 10+ Mbps upload
Recommended (20+ players)
  • • CPU: Intel Core i5 3470 @ 3.2GHz / AMD X8 FX-8350 @ 4GHz
  • • RAM: 8 GB RAM
  • • Storage: 72 GB available space (SSD recommended) (SSD)
  • • Network: 50+ Mbps upload

Step-by-Step FiveM Server Setup

1

Step 1: Create a Cfx

Create a Cfx.re account and generate a server key at keymaster.fivem.net

2

Step 2: Download FiveM server files from the artifacts page

Download FiveM server files from the artifacts page

3

Step 3: Create server directory and extract server files

Create server directory and extract server files

4

Step 4: Create server

Create server.cfg with your configuration

Code Example:

cfg
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

sv_hostname "My FiveM Server"
sv_maxclients 32
sv_licensekey "your_license_key_here"

start mapmanager
start chat
start spawnmanager
start sessionmanager
start basic-gamemode
start hardcap
start rconlog
5

Step 5: Install essential resources (es_extended, vrp, etc

Install essential resources (es_extended, vrp, etc.) in the resources folder

6

Step 6: Configure database connection for roleplay frameworks

Configure database connection for roleplay frameworks

7

Step 7: Forward port 30120 on your router and firewall

Forward port 30120 on your router and firewall

8

Step 8: Start the server using FXServer

Start the server using FXServer.exe with +exec server.cfg

9

Step 9: Configure admin permissions and server rules

Configure admin permissions and server rules

FiveM Server Configuration

Basic Settings

Server NameMy FiveM Server
Max Players20
Game Modesurvival
Difficultynormal

Advanced Settings

Performance Optimization

  • • Allocate 1GB RAM per 4-6 players
  • • Use SSD storage for better performance
  • • Optimize view distance based on player count
  • • Enable server-side optimizations

Security Settings

  • • Set strong admin passwords
  • • Configure firewall rules
  • • Enable whitelist if needed
  • • Regular backup schedule

Common FiveM Server Issues & Solutions

🚫 Players Can't Connect to Server

Symptoms: Server appears offline, connection timeouts

Solutions:

  • Check port forwarding configuration (port 25565 for Minecraft)
  • Verify firewall settings allow server traffic
  • Confirm server is running and listening on correct port
  • Test with local IP first, then external IP

⚠️ Server Lag and Performance Issues

Symptoms: Slow response, block lag, entity lag

Solutions:

  • Increase RAM allocation (minimum 2GB recommended)
  • Reduce view distance in server properties
  • Limit entity spawning and mob farms
  • Use performance optimization plugins

💥 Server Crashes Frequently

Symptoms: Unexpected shutdowns, error messages

Solutions:

  • Check server logs for error messages
  • Ensure sufficient RAM allocation
  • Update server software to latest version
  • Remove problematic plugins or mods

Server Setup Complete! 🎉

Your FiveM server is ready. Now let's get players to join!