FiveM server.cfg: Complete Configuration Guide
The server.cfg file is the heart of every FiveM server. It defines how your server runs: slots, networking, game build, OneSync, logging, and visibility in the server list.

The server.cfg file is the heart of every FiveM server. It defines how your server runs: slots, networking, game build, OneSync, logging, and visibility in the server list. This guide is for server owners and developers who want safe defaults, production hardening, and performance best practices. Always keep backups and use version control. If youβre new, start with our . For deeper optimizations, see our .
This guide is part of our , covering everything from initial setup to scaling your community.
On this page
- TL;DR: Production-ready baseline (annotated)
- Minimal dev config
- Hardened production config
- Server information & listing
- Networking & slots
- Game build & artifacts
- OneSync configuration
- Resource start order & dependencies
- Security & abuse hardening
- CDN & asset streaming (when to use)
- Myths & deprecated flags
- Validation & troubleshooting
- Internal resources & next steps
- FAQ
TL;DR: Production-ready baseline (annotated)
A clean server.cfg is the foundation of stability. Below are two examples: a minimal dev config and a hardened production config.
Minimal dev config
# server.cfg (development)
Basic config for local testing
Network
endpoint_add_tcp "0.0.0.0:30120" # TCP port binding
endpoint_add_udp "0.0.0.0:30120" # UDP port binding
Server info
Frequently Asked Questions
What is FiveM server.cfg: Configuration?
1. What is server.cfg in FiveM? Itβs the main configuration file that defines server name, slots, resources, networking, security, and visibility.










