How To Set a Password on Your FiveM Server

Learn how to password protect your FiveM dedicated server.

Setting a password on your FiveM server restricts access to only players who know the password.

Open Files

Log in to the XGamingServer Panel and select your FiveM server. In the sidebar, click Files.

Open server.cfg

Open the server.cfg file.

Add the Password Setting

Add the following line to server.cfg:

sv_password "yourpassword"

Replace yourpassword with your desired password.

Save and Restart

Save the file and restart your server from the Console page.

Players will now be prompted to enter the password when connecting through the FiveM client.

📝 Note: To remove the password, either delete the sv_password line or set it to an empty string:

sv_password ""

How is this guide?

40% Off — Limited TimeGet your Fivem server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page