Halloween Edition36 maps, limited runlimited runShop the drop
Chapter 09 of 17The Server Handbook for FiveM

OneSync, player slots and game builds

In short

OneSync makes the server aware of every entity. It is required for large slot counts and unlocks server-side entity natives, entity lockdown, state bags and routing buckets.

`onesync` valueMeaning
onFull state awareness and server-determined entity routing — use this
legacyCompatibility mode for scripts that expect every player on every client; not recommended
offStandard GTA peer-to-peer networking; the server is only a relay
Slots (`sv_maxclients`)Requirement
From 32OneSync on or legacy
Above 64OneSync on
Above 48Element Club Argentum subscription or higher on the key owner’s account
Maximum2048
Routing buckets and state bags (server)
-- move a player into their apartment instance
SetPlayerRoutingBucket(source, 1000 + source)
SetRoutingBucketPopulationEnabled(1000 + source, false)

-- back to the normal world
SetPlayerRoutingBucket(source, 0)

-- synced data on the player
Player(source).state:set('duty', true, true)
BuildUpdate
2189Cayo Perico Heist
2802Los Santos Drug Wars
2944San Andreas Mercenaries
3095The Chop Shop
3258Bottom Dollar Bounties
3407Agents of Sabotage
3570Money Fronts
3751A Safehouse in the Hills
3889The Kortz Center Heist

`sv_enforceGameBuild <number>` — startup only; each build includes everything before it.

The Server Handbook for FiveM

This chapter is one of 17. The handbook also carries the console command and convar cheat sheets, a glossary and the official references every chapter is checked against.

Open the handbook