# OneSync

Here is how to enable Onesync in FiveM!&#x20;

First, there is a misconception that turning on onesync is done through the server.cfg this is completely not the case and is actually a startup convar and what we mean by this is that you add +set onesync as an arguement onto your bat file like so:&#x20;

![](https://603345232-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MV33ySRjxhfe2cbhHHV%2F-MW0rEZ7Ne8zgSSOeixR%2F-MW0sU8OQ6oVf_5QQ3rk%2Fimage.png?alt=media\&token=ea0065f8-e91f-4586-a857-5e697d32d9e2)

![](https://603345232-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MV33ySRjxhfe2cbhHHV%2F-MW0rEZ7Ne8zgSSOeixR%2F-MW0sZmsfEhUNyJYgiSd%2Fimage.png?alt=media\&token=6f714f94-0708-4c14-b129-b526be002493)

Apologies for the notepad images was just for convinience.&#x20;



However, if you are using TXAdmin you can enable it from the panel within the settings and there will be a button to enable onesync and you just turn the switch on and restart your server and boom it's done!&#x20;

Onesync offers so many benefits and bonuses and it should always be used in production settings where possible! It provides lots of security and more control over your server from the serverside.
