FiveM Server Setup Guide 2026
Complete step-by-step tutorial to set up your own FiveM server
FiveM
Cfx.re • August 15, 2015
Explore ranked listings, compare communities, and use our guides to find or run a better FiveM server.
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
Step 1: Create a Cfx
Create a Cfx.re account and generate a server key at keymaster.fivem.net
Step 2: Download FiveM server files from the artifacts page
Download FiveM server files from the artifacts page
Step 3: Create server directory and extract server files
Create server directory and extract server files
Step 4: Create server
Create server.cfg with your configuration
Code Example:
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 rconlogStep 5: Install essential resources (es_extended, vrp, etc
Install essential resources (es_extended, vrp, etc.) in the resources folder
Step 6: Configure database connection for roleplay frameworks
Configure database connection for roleplay frameworks
Step 7: Forward port 30120 on your router and firewall
Forward port 30120 on your router and firewall
Step 8: Start the server using FXServer
Start the server using FXServer.exe with +exec server.cfg
Step 9: Configure admin permissions and server rules
Configure admin permissions and server rules
FiveM Server Configuration
Basic Settings
My FiveM Server20survivalnormalAdvanced 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!
