SA:MP Server Configuration Generator
Use this SAMP server.cfg generator to create the configuration for your SA-MP server without writing the file by hand. Set the hostname, maxplayers, gamemode, filterscripts, RCON and master list in the form, or describe your server to the AI in Easy Mode. The live preview shows the finished server.cfg, which you can copy, download or share as a link without passwords. Free, with no sign-up required, right in your browser.
Built by Florian Galz
Example result
Example: the generated server.cfg
You set the options using a form or AI Easy Mode, and the generator creates the finished server.cfg for SA:MP live. Below are the first lines of the default configuration; your file contains your values and all other settings.
Example · Default configuration
Output
// SA:MP — generated with the ZAP-Hosting Game Config Generator// zap-hosting.com/tools/sa-mp/config-generator // Server identityhostname SA-MP Servermaxplayers 50passwordlanguage Englishweburl // Gamemode & scriptsgamemode0 grandlarc 1filterscriptspluginsmaxnpc 0- +17 rowsYou can copy or download the complete file in the generator; the sample lines here only show the beginning.
Settings
What you can configure in SA-MP server.cfg
server.cfg is a flat file without sections: each line contains a key, a space and a value. SA-MP represents switches as 0 or 1. The generator divides the settings into five sections; the key from the file is shown in parentheses.
Server identity
Server name (hostname, default SA-MP Server), maximum player count (maxplayers, 1–1000, default 50), join password (password, leave blank for a public server), language for the server browser filter (language) and your community website (weburl).
Gamemode & Scripts
Main gamemode (gamemode0, filename without .amx plus number of runs, default grandlarc 1), filterscripts (filterscripts) and native plugins (plugins) as space-separated lists without file extensions, plus NPC slots for bots (maxnpc, 0–50).
RCON
Turn the remote console for admin commands on or off (rcon, default 0) and set the RCON password (rcon_password). The password field appears only when RCON is set to 1.
Server Browser & World
Listing in the public SA-MP master list (announce), responses to server browser queries (query), map name (mapname), gamemode text (gamemodetext), weather ID (weather, 0–45, default 10), time in HH:MM format (worldtime, default 12:00) and gravity (gravity, default 0.008).
Logging
Write player chat to the server log (chatlogging), add a timestamp before each log line (timestamp) and log server browser queries (logqueries).
The generator covers 21 server.cfg settings. Pure network and performance values such as port or bind, as well as custom model and database logging options, are intentionally excluded. If you import an existing server.cfg, those lines are preserved in the file.
Guide
How to create the configuration for your SAMP server
From the first setting to a running server: how to create the server.cfg for your SA-MP server.
- 1
Step 1
Open the generator or import a server.cfg
The generator starts with SA-MP's default server.cfg, including hostname SA-MP Server, maxplayers 50 and gamemode0 grandlarc 1. If you already have a server.cfg, upload it through the import tool as a .cfg or .txt file of up to 2 MB, or paste its contents. Recognized values appear in the form; other lines are preserved in the file. Comment lines starting with // are dropped.
- 2
Step 2
Choose Easy Mode or the form
In Easy Mode, describe your server in your own words, such as “public roleplay server with RCON and chat logging.” The AI suggests suitable values and explains each change; only the changes you select are applied. In the form, you set each option yourself.
- 3
Step 3
Set server identity
Enter the server name (hostname), maximum player count between 1 and 1000 (maxplayers), an optional join password, the language and your community website.
- 4
Step 4
Enter the gamemode, filterscripts and plugins
Enter the main gamemode without .amx, followed by the number of runs, such as grandlarc 1. Add filterscripts and plugins separated by spaces and without file extensions, and set the NPC slots between 0 and 50.
- 5
Step 5
Set up RCON
If you need the remote console, enable RCON (1) and set your own RCON password. The SA-MP server will not start with the default password changeme.
- 6
Step 6
Configure the server browser, world and logging
Choose whether the server appears in the SA-MP master list (announce) and responds to server browser queries (query). Set the map name, gamemode text, weather ID, time and gravity, and turn chat logging, timestamps and query logging on or off.
- 7
Step 7
Check server.cfg, save it and restart the server
Check the server.cfg in the live preview, then copy it, download it or share a link without passwords. Put the file in your server’s root directory and restart it, as SA-MP only reads server.cfg on startup. On a ZAP-Hosting server, however, the startup parameters in the panel take precedence.
Setup
File location & usage
Two ways to get the config onto a server: upload it yourself or apply it directly in our panel.
The manual method
On a self-hosted server
- 1
Download file
Download the generated server.cfg using the button above.
- 2
Upload via file manager or FTP/SFTP
Place in
./server.cfg(Linux) or.\server.cfg(Windows). - 3
Apply changes
SA:MP reads server.cfg only at startup — restart your server for the changes to take effect.
The ZAP-Hosting way
Startup parameters in the panel
Rent a SA:MP server from us: there, the server image regenerates server.cfg on every start. You set the values using the startup parameters in the panel. Settings without a startup parameter are lost on the next start.
- Startup parameters directly in the panel
- No FTP client required
- Online in 60 seconds
More tools
Useful tools for your SA-MP server
Server Configuration Generator
Describe your server.cfg settings to the ZapX AI Agent in your own words, or set each option manually—with a live preview for your rented FiveM server.
Built by Florian Galz
server.cfg Generator
Configure network, license, OneSync, admin permissions, and resources using a form.
Built by Eric Mager
Server Configuration Generator
Describe your server.cfg settings to the ZapX AI Agent in your own words, or set each option manually—with a live preview for your rented RedM server.
Built by Florian Galz
Server Configuration Generator
Describe your mtaserver.conf settings to the ZapX AI Agent in your own words, or set each option manually—with a live preview for your rented MTA server.
Built by Florian Galz
Port Checker
Check whether specific ports are open on an IP or hostname—select a protocol or game instead of scanning all ports at once.
Built by Sebastian Rademacher
Password Generator
Generate strong, random passwords directly in your browser — nothing is stored or transmitted.
Built by Rugile Rutkauskaite
FAQ
Frequently asked questions
File location, gamemode syntax, RCON, passwords, Easy Mode and ZAP-Hosting—briefly explained.
server.cfg is located directly in your SA-MP server's root directory, alongside the server executable. SA-MP only reads it on startup, so restart the server after making changes.
For gamemode0, enter your gamemode's filename without .amx, followed by the number of times to run it, for example grandlarc 1 (the default). Enter filterscripts and plugins as space-separated lists of names without file extensions. Set bot slots with maxnpc between 0 and 50.
With RCON enabled, the SA-MP server will not start while the default password changeme is set. RCON is off by default in the generator (rcon 0). If you enable RCON (1), the rcon_password field appears with this warning so you can set your own password.
SA-MP writes switches as 0 (off) and 1 (on). The generator outputs rcon, announce, query, chatlogging, timestamp and logqueries in this format. Each line consists of a key, a space and a value; text values such as hostname or mapname have no quotation marks. For a private server, set announce to 0 so it is not listed in the public SA-MP master list.
Describe the server you want in your own words, for example, “large freeroam server with filterscripts and bot slots.” The AI suggests suitable settings and explains each change. You choose which suggestions to apply; nothing changes without your confirmation. The join and RCON passwords are not sent to the AI.
No. Join and RCON passwords are masked in the form and never saved in share links. A share link contains only the non-secret values you changed from the default configuration.
The generator is free and requires no account: the form, Easy Mode, import, copy, download and sharing all work without one. Your server.cfg is created directly in your browser. Only when you request Easy Mode suggestions are your description and the current values, without the join and RCON passwords, sent to the AI.
Not as a file: the server image at ZAP-Hosting recreates the configuration from the panel’s startup parameters on every start. Set the hostname, player count, join and RCON passwords, RCON, language, website, gamemode, filterscripts, plugins, map name, gamemode text, weather, time, master list and query there. NPC slots (maxnpc), gravity and the three logging options have no startup parameters and are lost on the next start.
Any more questions?
Contact SupportGet your SA:MP server online today
Rent your SA:MP server now and apply this config directly in the panel.
No setup. No risk. Online in seconds.
