How to Edit server.cfg on Your SA-MP Server
SA-MP2 min readUpdated Nov 24, 2026
The server.cfg file holds your server name, password and player limit. The SA-MP Manager has a form for it, so you do not have to edit the file by hand.
Open the server.cfg Tab
- Log in to your game panel and click your SA-MP server.
- Open SA-MP Manager in the left menu.
- Click the server.cfg tab.
Name, Password and Slots
- In General, change Hostname to the name players see in the list.
- Join password (blank = open) is the password players need. Leave it blank for a server anyone can join.
- Language and Website URL are shown in the server list. Map name is shown in the status.
- In Capacity, set Max players. Max NPCs is how many bots the server allows.
Network and Limits
- Announce to master server (0/1):
1lists your server on the internet list. - Allow queries (0/1): keep
1, otherwise the status page and server lists cannot read your server. - Lag comp mode (0/1/2), the update rates and Stream distance change how the game behaves. Only change them when your gamemode asks for it.
- Limits protect your server from flooding. The defaults are fine for most servers.
Other Settings
- Other settings shows every other line in your file, for example
echo,gamemode0andfilterscripts, andpluginswhen your file has that line. This is where you change which gamemode runs, see how to upload gamemodes, filterscripts and plugins. - Secret keys such as
rcon_passwordare hidden here on purpose. Change them in the file manager.
Save and Restart
- Click Save server.cfg at the bottom right.
- Go to the Console page and click Restart. The server reads
server.cfgonly when it starts.
Good to Know
- Back up first. If you edit by hand, create a manual backup.
- Mistakes. A wrong value can stop the server from starting. Check the Server log tab if it does not reach RUNNING.
Finished
Your server has its own name and rules. Next, add your own gamemode with how to upload gamemodes, filterscripts and plugins.
Did this solve your problem?
Still stuck?
Our support team actually knows the games we host. Open a ticket and we will figure it out together.
Open a ticket