OneSync is a feature in FiveM that allows for larger server capacities and improved synchronization of entities and players. Enabling OneSync is a straightforward process that requires a simple edit to your server.cfg file.
Steps to Enable OneSync
1
Open the server.cfg File
Navigate to your server's root directory and locate the server.cfg file. Open it with a text editor (e.g., Notepad++ or Visual Studio Code).
2
Add the OneSync Command
Add the following line to your server.cfg file to enable OneSync:
onesync on
This ensures OneSync is active for your server.
3
Optional: Enable Infinity Mode
If your server needs support for more than 64 players (up to 1024), enable OneSync Infinity by adding this line:
onesync_enableInfinity 1
Infinity mode is designed for large-scale servers and requires proper resource optimization.
4
Save and Restart Your Server
Save the changes to the server.cfg file and restart your server to apply the OneSync settings.