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
ModeMax playersDescription
on (Infinity)2048Recommended — full server-side sync with population management
legacy64Older mode, no server-side population
off32Default 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 true

Reduce Resource Load

  1. Remove unused resources — every ensure in server.cfg loads a resource. Remove what you don't use
  2. Check resource monitor — in txAdmin, view the Resources tab to see CPU/memory per resource
  3. Avoid heavy client-side scripts — large MLOs, high-poly vehicles, and complex UI scripts increase load times
  4. 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.

How is this guide?

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

On this page