Skip to content

SA:MP: Server Configuration

Learn how to configure your SA:MP server with open.mp, including startup parameters, config.json, gamemodes, filterscripts, plugins, and RCON.

26 November 20267 min read4 Views0 helpful

Don't have your own server yet? Host your SA:MP server with ZAP-Hosting from €4.49 / month.Or try 3 days from €0.81

Introduction

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.

How the configuration works

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.

Important

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.

Info

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 parameters at a glance

Startup parameterDescription
Server nameYour server’s name in the server list. Default: ZapX SA:MP Server
Max. playersThe number of players who can be on your server at the same time, from 1 to 1000. Default: 50
Server passwordPassword required to join. Leave blank for an open server with no password.
Game mode scriptYour gamemode’s filename without .amx, followed by the number of times it should run. Default: gungame 1. Cannot be left blank.
Additional scriptsFilterscripts that run alongside the gamemode. Enter the name without .amx; separate multiple entries with semicolons.
Native pluginsAdditional plugins loaded by your server. Enter the filename without an extension; separate multiple entries with semicolons.
Enable RCONEnables RCON access for external RCON programs. Default: off
RCON PasswordPassword for RCON and for logging in as an admin in-game. Required if Enable RCON is turned on.
Show in server listLists your server in the public server list. Default: on
Respond to server queriesYour server responds to server browser queries, such as requests for its name and player count. Default: on
Game mode displayA 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
LanguageThe language displayed for your server in the server list. Default: blank
WebsiteYour website address, shown to players. Default: blank
WeatherThe game world’s weather ID. Default: 10
In-game timeThe game world’s time as a full hour from 0 to 23. Default: 12
Tip

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.

Gamemodes, filterscripts, and plugins

Your server looks for scripts and plugins in specific folders, which you can find in the Files tab:

FolderContents
gamemodesYour gamemodes as compiled .amx files
filterscriptsYour filterscripts as .amx files
pluginsClassic SA-MP plugins for Linux (.so)
componentsComponents written specifically for open.mp
scriptfilesFiles your scripts read and write, such as player accounts

Setting your gamemode

  1. Upload your compiled gamemode as an .amx file to the gamemodes folder. A .pwn file alone is not enough.
  2. In the Game mode script field, enter the filename without .amx, followed by the number of times it should run, for example, gungame 1.
  3. Save and restart your server.

Make sure the spelling and capitalization are exact. Your server runs on Linux, which is case-sensitive.

Loading filterscripts and plugins

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.

Important

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.

RCON and the console

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 changeme is 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.

More settings in config.json

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, announce and enable_query
  • game.mode, game.map, game.weather and game.time
  • pawn.main_scripts, pawn.side_scripts and pawn.legacy_plugins
  • rcon.enable and rcon.password
  • network.port and network.bind, to keep your server reachable
  • logging.log_chat, so player chat is always written to the log

You can freely edit everything else in config.json, for example:

EntryDescription
max_botsMaximum number of NPCs. They take up player slots.
game.use_chat_radius / game.chat_radiusLimits chat to nearby players
game.use_nametagsName tags, health bars, and armor bars above players
game.vehicle_respawn_timeTime in milliseconds before vehicles respawn
discord.inviteDiscord invite displayed by the open.mp launcher
banners.light / banners.darkImage 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.

Warning

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.

Switching from server.cfg

If you’re bringing over a server that uses a classic server.cfg, transfer the values to the appropriate Startup parameters:

server.cfgStartup parameter
hostnameServer name
maxplayersMax. players
passwordServer password
gamemode0Game mode script
filterscriptsAdditional scripts
pluginsNative plugins
rcon / rcon_passwordEnable RCON / RCON Password
announce / queryShow in server list / Respond to server queries
gamemodetext / mapnameGame mode display / Map name (display)
language / weburlLanguage / Website
weather / worldtimeWeather / 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.

Conclusion

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! 🙂

Free tools

SA:MP Tools

View all

FAQ

Frequently asked questions

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. That’s why settings are stored in config.json rather than server.cfg.
Whenever your server starts, it rewrites values that are available as startup parameters, such as name, max_players, password, pawn.main_scripts, and rcon.password, in config.json. Change these under Startup Parameters in the Configuration tab. All other entries in the file are preserved.
Upload filterscripts as .amx files to the filterscripts folder, then enter their names without the extension in the Additional Scripts field. Upload Linux plugins (.so) to the plugins folder and enter their names without the extension in the Native Plugins field. Separate multiple entries with semicolons.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.