What is OneSync in FiveM and should I enable it?

OneSync is FiveM's server-side state synchronization system. Instead of clients syncing entities directly with each other, the server tracks and routes entity state, which allows far more players per server, server-side entity handling and better control over who owns what. Almost every modern framework expects it, so new servers should enable it with set onesync on in server.cfg or through txAdmin.

The short version

Without OneSync, GTA V's original peer-style sync model applies, which was built for small sessions. OneSync moves entity synchronization through the server. The server knows where players, vehicles and objects are, decides who should receive updates about them, and can create and control entities itself.

Why it matters

  • Player counts. The legacy model is limited to a small number of players. OneSync is what makes larger servers possible. Your actual slot cap also depends on your license and any Element Club tier.
  • Server-side entities. Scripts can spawn vehicles and objects on the server, which is more reliable and harder to abuse than client spawning.
  • Culling. Players only receive data about entities near them, which saves bandwidth.
  • Security. Combined with entity lockdown settings, it limits what a modified client can create.

Modern frameworks such as ESX Legacy, QBCore and Qbox assume OneSync is on. Many scripts will not work correctly without it.

How to enable it

In server.cfg:

set onesync on
sv_maxclients 64

If you run your server through txAdmin, OneSync is also exposed in the server settings, and txAdmin passes it on start. Do not set it in two conflicting places.

OneSync and entity lockdown

With OneSync on, you can restrict which entities clients may create:

sv_entityLockdown strict

Strict mode blocks client-created networked entities, which stops many spawn exploits but also breaks any script that spawns entities on the client. Test on a staging server first. A relaxed mode exists as a middle ground. If unsure, start without lockdown, audit your scripts, then tighten it.

Common problems after enabling it

  1. Old scripts misbehave. Resources written before OneSync may use natives that behave differently. Check for updated versions.
  2. Entities disappearing at distance. That is culling working as intended. Scripts that need far-away entities should use server-side logic or state bags.
  3. Population feels different. Ambient traffic and peds are handled differently; adjust population scripts rather than fighting the system.

Should a new server turn it on?

Yes. There is very little reason to launch a public server without OneSync today. Enabling it later on a live server is possible, but every script then needs retesting at once, which is far more work than starting with it on. It is the default expectation of the ecosystem, and it gives you room to grow when your player count rises. The OneSync glossary entry has a shorter definition if you need one for staff docs.

Related questions

Stop being invisible on the server list

Upvote power decides where your server appears. FiveM Upvotes delivers it — paced, refilled, with no access to your server required.