FiveM Server Setup Basics 2026
Setting up a FiveM server can seem complex, but following these steps will get you started quickly.
Prerequisites
- Windows Server or Linux
- At least 4GB RAM
- Port 30120 open (TCP/UDP)
- A server key from Cfx.re
Step 1: Get Your Server Key
- Go to https://keymaster.fivem.net/
- Sign in with your GitHub account
- Create a new server key
- Copy your server key
Step 2: Download FiveM Server
Download the latest server build:
- Windows: fxserver.exe
- Linux: fx (compiled binary)
Extract the files to your server directory.
Step 3: Configure server.cfg
Create server.cfg with basic settings:
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
sv_serverName "^1[US] ^2My FiveM Server"
sets sv_projectName "My FiveM Server"
sv_maxclients 32
set sv_license "YOUR_SERVER_KEY_HERE"
Step 4: Add Resources
Create a resources folder and add resources like:
- spawnmanager
- maptools
- baseevents
Step 5: Start Server
./fxserver.exe +exec server.cfg
Monitor console output for errors.
Essential Resources
- spawnmanager - Player spawning
- maptools - Map editing
- baseevents - Core events
- chat - Chat system
Monitoring
Check your server status on https://servers.fivem.net/
Conclusion
You now have a basic FiveM server running. Add scripts and resources as needed!