How to Optimize Your FiveM Server Performance
Enable OneSync, tune convars, and reduce lag on your FiveM server.
Enable OneSync
OneSync replaces the default peer-to-peer sync with server-authoritative entity synchronization. It's required by both ESX and QBCore, and increases the player cap from 32 to 2048.
In server.cfg (via Files in the XGamingServer Panel):
set onesync on| Mode | Max players | Description |
|---|---|---|
on (Infinity) | 2048 | Recommended — full server-side sync with population management |
legacy | 64 | Older mode, no server-side population |
off | 32 | Default GTA Online sync |
OneSync Infinity is the current recommended standard.
Performance Convars
Add these to server.cfg:
# Entity lockdown — prevents clients from creating unauthorized entities
sv_entityLockdown strict
# Script hook control
sv_scriptHookAllowed 0
# Duplicate player checking
sv_duplicatePlayers trueReduce Resource Load
- Remove unused resources — every
ensurein server.cfg loads a resource. Remove what you don't use - Check resource monitor — in txAdmin, view the Resources tab to see CPU/memory per resource
- Avoid heavy client-side scripts — large MLOs, high-poly vehicles, and complex UI scripts increase load times
- Limit streaming assets — each addon vehicle/MLO increases client download time and memory usage
Server Artifacts
Keep your server artifacts (FXServer build) up to date. Newer builds include performance improvements and bug fixes. Update via Reinstall Server on the Dashboard.
Related Guides
How is this guide?

40% Off — Limited TimeGet your Fivem server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server