Last updated: July 23, 2026
This guide shows you how to set a password on your FiveM server, which restricts access to only players who know the password.
server.cfg file.sv_password "yourpassword"
Replace yourpassword with your desired password.Players will now be prompted to enter the password when connecting through the FiveM client.
sv_password line or set it to an empty string: sv_password ""
We use essential cookies to make the site work, and optional analytics cookies to measure traffic. By clicking "Accept all" you agree to the use of all cookies. You can change your choice at any time via Cookie Settings in the footer. Details are in our Privacy Policy.