7 server.cfg Mistakes That Are Silently Killing Your FiveM Server
Your server.cfg is probably the last thing you look at when troubleshooting performance. Most people set it up once when they first install FXServer and never touch it again.
That’s a mistake. I’ve audited maybe 50+ server configs at this point, and almost every single one has at least two or three of these issues.
1. Not Using OneSync
I know, it’s 2026, but I still see it. Servers running without OneSync enabled.
# If you don't have this, add it immediately
set onesync on
Without OneSync, you’re limited to 32 players and using the legacy entity synchronization system that’s significantly worse. There is literally no downside to enabling it in 2025 unless you’re running ancient scripts that explicitly break with it (and if so, those scripts need to be replaced anyway).
2. sv_maxclients Set Absurdly High
# I see this all the time
sv_maxclients 512
Setting max clients to 512 when your server realistically handles 80 players is not “planning for growth.” It’s telling FXServer to allocate resources for 512 potential connections.
Set it to what you actually need, plus maybe 10-20% headroom:
sv_maxclients 100
If you’re running a 64-slot server, set it to 80. If you’re running a 128-slot server, set it to 150. Don’t set it to the maximum just because you can.
3. No State Bag Rate Limiting
State bags are FiveM’s system for synchronizing data between clients and the server. Without rate limiting, a single client (or a cheater with a modded client) can flood state bag changes and lag your entire server.
# Add these
set rateLimiter_stateBagFlood 150
This is a security AND performance setting. Not having it is like running a web server without rate limiting on your API — it’s asking for trouble.
4. Not Enforcing a Game Build
# Add this
sv_enforceGameBuild 3258
When you don’t enforce a game build, players can connect with different GTA V versions. Different versions have different behaviors, different assets, and different bugs. This leads to subtle desync issues that are incredibly hard to debug because they only affect some players.
Pick a recent stable build and enforce it. Yes, players will need to update. That’s fine.
5. Missing sv_endpointPrivacy
# Add this
set sv_endpointPrivacy true
Without this, player IP addresses are visible to other connected players through the FiveM API. This is a privacy issue, and it also enables targeted DDoS attacks against individual players.
There’s no performance impact from enabling it. Just do it.
6. Running Too Many Resources at Startup
This isn’t a single config line — it’s about what you have in your ensure or start commands. I regularly see servers with 200+ resources in their startup config.
Every resource has overhead:
- Each one registers event handlers
- Each one may run background threads
- Each one consumes memory
- Each one adds to the server’s tick processing time
The practical limit: Most well-optimized servers run 60-100 resources. If you’re above 150, you almost certainly have resources that could be removed or combined.
How to audit:
- List every ensured resource
- For each one, ask: “Is this actively used by players?”
- If no, remove it
- If yes, check if it overlaps with another resource (do you really need three different notification systems?)
7. No Connection Queue / Timeout Configuration
When your server is at capacity and players are trying to join, what happens? Without proper configuration, they hit the default connection timeout which can be frustratingly long for players and wasteful for the server.
# Adaptive cards timeout
set sv_kickPlayerOnAcTimeout true
# Don't let connecting players hang forever
set sv_authMaxVariance 1
set sv_authMinTrust 5
These settings ensure that players who fail to authenticate or who have connection issues get dropped quickly, freeing up the slot for the next person.
How to Audit Your Config
Go through your server.cfg line by line. For every setting, ask:
- Do I know what this does?
- Is the value appropriate for my server?
- Is this the recommended value for 2025?
If you can’t answer yes to all three, research it or remove it.
Better yet, let FivePulse audit it for you. The config audit scans your server’s active convars and flags anything that’s missing, misconfigured, or outdated. It takes 3 seconds and catches things humans miss.
The Quick Fix Checklist
Copy these into your server.cfg if you’re missing them:
# Performance & Security essentials
set onesync on
sv_maxclients 100
set rateLimiter_stateBagFlood 150
sv_enforceGameBuild 3258
set sv_endpointPrivacy true
set sv_kickPlayerOnAcTimeout true
Adjust sv_maxclients and sv_enforceGameBuild to your specific needs. Everything else should be set exactly as shown.
These five minutes of config changes might be the easiest performance improvement you ever make on your server.
Want to find your server's problems automatically?
FivePulse scans your server and tells you exactly what's wrong — with copy-paste fixes.
Try FivePulse Free