With the right configuration, you can turn your SA:MP game server into exactly the server your community is looking for: your own name in the server list, your gamemode, and the right filterscripts and plugins. Your server runs on open.mp, the modern server for San Andreas Multiplayer. Existing SA-MP gamemodes, filterscripts, and plugins continue to work with it. In this guide, we’ll show you what settings are available, where to find them in ZapX, and what else you can customize directly in the configuration file.
open.mp reads its settings from the config.json file. You can find it in the Files tab, directly in your server’s main directory. Your server does not read a server.cfg file like the classic SA-MP server does.
You don’t have to change the most important values in the file manually: you can find them in ZapX under Startup parameters in the Configuration tab. Whenever your server starts, it writes the values from the startup parameters to the appropriate places in config.json. All other entries in the file stay as you set them.
If a value is available as a startup parameter, always change it under Startup Parameters, not directly in config.json. Any change you make in the file will be overwritten with the value from the startup parameters the next time the server starts.
After you save, ZapX will offer to restart the server. Your changes won’t take effect until you restart it. You can also find the Configurator under Tools, which lets you enter the same settings in a form.
On older servers, ZapX used to rewrite the entire config.json file every time the server started, which caused custom entries to be lost. If your dashboard shows the Update available message, click Apply update to keep your custom entries.
| Startup parameter | Description |
|---|---|
| Server name | Your server’s name in the server list. Default: ZapX SA:MP Server |
| Max. players | The number of players who can be on your server at the same time, from 1 to 1000. Default: 50 |
| Server password | Password required to join. Leave blank for an open server with no password. |
| Game mode script | Your gamemode’s filename without .amx, followed by the number of times it should run. Default: gungame 1. Cannot be left blank. |
| Additional scripts | Filterscripts that run alongside the gamemode. Enter the name without .amx; separate multiple entries with semicolons. |
| Native plugins | Additional plugins loaded by your server. Enter the filename without an extension; separate multiple entries with semicolons. |
| Enable RCON | Enables RCON access for external RCON programs. Default: off |
| RCON Password | Password for RCON and for logging in as an admin in-game. Required if Enable RCON is turned on. |
| Show in server list | Lists your server in the public server list. Default: on |
| Respond to server queries | Your server responds to server browser queries, such as requests for its name and player count. Default: on |
| Game mode display | A short description of the gamemode in the server list. Default: GunGame |
| Map name (display) | The map name shown in the server list. Default: San Andreas |
| Language | The language displayed for your server in the server list. Default: blank |
| Website | Your website address, shown to players. Default: blank |
| Weather | The game world’s weather ID. Default: 10 |
| In-game time | The game world’s time as a full hour from 0 to 23. Default: 12 |
Game mode display and Map name (display) only change what players see in the server list. Set the gamemode that actually runs with Game mode script.
Your server looks for scripts and plugins in specific folders, which you can find in the Files tab:
| Folder | Contents |
|---|---|
gamemodes | Your gamemodes as compiled .amx files |
filterscripts | Your filterscripts as .amx files |
plugins | Classic SA-MP plugins for Linux (.so) |
components | Components written specifically for open.mp |
scriptfiles | Files your scripts read and write, such as player accounts |
- Upload your compiled gamemode as an
.amxfile to thegamemodesfolder. A.pwnfile alone is not enough. - In the Game mode script field, enter the filename without
.amx, followed by the number of times it should run, for example,gungame 1. - Save and restart your server.
Make sure the spelling and capitalization are exact. Your server runs on Linux, which is case-sensitive.
In the Additional scripts field, enter your filterscripts without .amx. Separate multiple entries with semicolons, for example, base;gl_actions. Your server automatically adds the filterscripts/ folder.
In the Native plugins field, enter plugins from the plugins folder without the file extension. Separate multiple entries with semicolons as well, for example, streamer;mysql.
Your server runs on Linux with the 32-bit version of open.mp. You therefore need the regular Linux version of a plugin with the .so extension. Windows plugins with the .dll extension, as well as 64-bit and ARM versions, won’t work. open.mp components belong in the components folder, not in the Native plugins field.
If a script or plugin won’t load, find help in our Common Issues.
You need an RCON Password to use admin commands in-game. Log in through the in-game chat with /rcon login followed by your password. You can then use commands such as /rcon kick or /rcon say. You don’t need to turn on Enable RCON for this—the setting is only for external RCON programs.
- If Enable RCON is turned on, you must set an RCON Password, or you won’t be able to save.
- The password
changemeis not allowed; open.mp won’t start if you use it. - If RCON Password is left blank, in-game admin login is disabled.
Only share your RCON password with people you trust: anyone who knows it has full admin rights on your server.
You can also enter server commands directly in the panel Console, without /rcon. For example, use cmdlist to see a list of all commands or say to send a message to all players. If the console instead says that your server isn’t accepting commands yet, apply the offered update by clicking Apply update. For an overview of important open.mp commands, see open.mp: Server Commands.
Whenever your server starts, it overwrites these entries with the values from the startup parameters, so changing them manually won’t have any effect:
name,password,max_players,language,website,announceandenable_querygame.mode,game.map,game.weatherandgame.timepawn.main_scripts,pawn.side_scriptsandpawn.legacy_pluginsrcon.enableandrcon.passwordnetwork.portandnetwork.bind, to keep your server reachablelogging.log_chat, so player chat is always written to the log
You can freely edit everything else in config.json, for example:
| Entry | Description |
|---|---|
max_bots | Maximum number of NPCs. They take up player slots. |
game.use_chat_radius / game.chat_radius | Limits chat to nearby players |
game.use_nametags | Name tags, health bars, and armor bars above players |
game.vehicle_respawn_time | Time in milliseconds before vehicles respawn |
discord.invite | Discord invite displayed by the open.mp launcher |
banners.light / banners.dark | Image URLs for your banner in the open.mp launcher |
Custom sections, such as the discord section used by a Discord plugin, are also preserved. It’s best to edit the file while the server is stopped, then restart it. You can find the current server log at logs/server.log and the previous startup’s log at logs/server.log.1.
If config.json is no longer valid JSON after an edit—for example, because a comma is missing—your server will move it aside the next time it starts as config.json.invalid- followed by the date and time, then start with a fresh file. Your changes will be in the file that was moved aside. Check it with a JSON validator and carefully transfer your entries to the new config.json.
If you’re bringing over a server that uses a classic server.cfg, transfer the values to the appropriate Startup parameters:
| server.cfg | Startup parameter |
|---|---|
hostname | Server name |
maxplayers | Max. players |
password | Server password |
gamemode0 | Game mode script |
filterscripts | Additional scripts |
plugins | Native plugins |
rcon / rcon_password | Enable RCON / RCON Password |
announce / query | Show in server list / Respond to server queries |
gamemodetext / mapname | Game mode display / Map name (display) |
language / weburl | Language / Website |
weather / worldtime | Weather / In-game time |
In Additional scripts and Native plugins, separate multiple entries with semicolons instead of spaces. Upload your gamemodes, filterscripts, and plugins to their respective folders, and upload your scripts’ data to the scriptfiles folder. See Managing Savegames to learn how to back up and restore this folder.
Your SA:MP server is now set up just the way you want it. See Connecting to the Server to learn how your players can connect. If something isn’t working as expected, our Common Issues guide can help. If you have any other questions, our support team is available every day! 🙂
