OneSync Infinity is the synchronization engine that enables FiveM servers to support hundreds of concurrent players. Unlike legacy OneSync (which broadcast every ped and vehicle to every connected client), Infinity utilizes distance culling and spatial awareness.
1. Key Differences in Infinity Scripting
When migrating scripts to OneSync Infinity, developers must never assume client-side natives like GetPlayerPed() work for players across the map. If a player is outside the client's culling radius (typically 300-400 meters), their entity does not exist on that client's game engine.