With the right configuration, you can turn your Multi Theft Auto game server into exactly the server you have in mind: your own name, password, player limit, game mode, and the resources your community needs. In this guide, we'll show you which settings are available, where to find them in ZapX, and what you can adjust directly in the mtaserver.conf configuration file.
Your MTA server reads its settings from the mtaserver.conf file in the deathmatch folder. However, you don't have to change the most important values manually:
- Startup parameters: Set the server name, server password, player limit, and settings for the server list and resource downloads in ZapX under Configuration > Startup parameters.
- Configuration file: All other settings, such as voice chat, the FPS limit, automatic backups, and which resources load at startup, are in
mtaserver.conf. Edit this file under the Configuration tab or in thedeathmatchfolder under Files.
Every time your server starts, it writes the values from the startup parameters to mtaserver.conf. This applies to the entries servername, maxplayers, ase, owner_email_address, and httpdownloadurl. ZapX also sets serverip to auto at every startup and enters your server's ports under serverport and httpport. Your server writes the password entry whenever there is a value in the Server password field. If you clear the field, your server removes the password it entered from that field the next time it starts. A password that you entered only in the file remains unchanged. Everything else in the file stays as you configured it.
Always change values that are available as startup parameters in the Startup parameters, not directly in mtaserver.conf. Any change made in the file will be overwritten with the value from the startup parameters the next time the server starts. This also applies to the ports.
After you save the startup parameters, ZapX will offer to restart the server right away. Changes to mtaserver.conf also only take effect after a restart.
| Startup parameter | Description |
|---|---|
| Server name | Your server's name in the in-game server list. Default: ZAP MTA Server |
| Max. players | The number of players who can play on your server at the same time. Default: 20 |
| Server password | Password required to join. Leave blank for an open server. A password entered only in mtaserver.conf will remain in place. |
| Operator email | Contact address for the MTA team. It is not publicly visible. |
| Show in server list | Registers your server in the public MTA server list. Default: 1 (on) |
| External download URL | Address of your own web server from which players can download resource files. Leave blank to use the built-in HTTP server. |
For Show in server list, only the values 1/0, true/false, yes/no, and on/off are valid.
For your server to appear in the MTA client server list, Show in server list must be enabled. MTA uses an additional UDP port for this: the game port plus 123. ZapX automatically sets up this port for your server, so you don't have to do anything.
According to MTA, a missing or incorrect Operator email can affect your server's visibility in the server list. It's best to enter an address where you can be reached.
When players join, the MTA client downloads files for all running resources from your server, such as scripts, models, and textures. This is handled by the built-in HTTP server, which is always enabled on your server. So don't enter <httpserver>0</httpserver> in mtaserver.conf: this will prevent players from downloading your resource files from your server.
If you have many or large resources, you can also host the files on your own web server and enter its address under External download URL. If the field is blank or the files are missing from the external address, MTA will use the built-in HTTP server again.
You can find your server's IP address and port under the Overview tab. See Connect to the server to learn how players can connect.
In MTA, everything that happens on your server is made up of resources: game modes, maps, scripts, and even the admin panel. Your resources are stored in the deathmatch/resources folder. MTA's default resources are organized into subfolders such as [admin] and [gamemodes].
You specify which resources load automatically at startup at the end of mtaserver.conf. Each resource has its own line:
<resource src="scoreboard" startup="1" protected="0"/>
<resource src="play" startup="1" protected="0"/>
The resource name goes after src. startup="1" loads it when the server starts, while protected="1" prevents it from being stopped while the server is running.
The game mode after setup is play, MTA's Freeroam mode. To use a different game mode, replace the line with play with a line containing the name of your game mode. To prevent play from starting at all, simply remove the line.
Upload a new resource as a folder to deathmatch/resources using the Files tab. Then manage it in the Console tab without restarting the server:
| Command | Description |
|---|---|
refresh | Refreshes the resource list so your server detects new resources |
start <ressource> | Starts a resource |
stop <ressource> | Stops a running resource |
restart <ressource> | Restarts a resource, for example, after a change |
For a resource to run after the next restart as well, also add it to mtaserver.conf with startup="1".
ZapX copies the default resources only when you first set up your server. If you delete a resource, it will remain deleted after a restart.
If the Console doesn't accept commands yet, your server needs a one-time update. Learn how to apply it in Automated server messages.
Each setting in mtaserver.conf is its own element, with the value between the opening and closing tags, for example, <voice>1</voice>. These are the settings most commonly changed:
| Setting | Description |
|---|---|
voice | Set to 1 to enable in-game voice chat. Default: 0 (off) |
voice_samplerate | Voice chat quality: 0 (8 kHz), 1 (16 kHz, default), or 2 (32 kHz). Higher values require more bandwidth. |
voice_quality | Overall voice chat quality, from 0 to 10. Default: 4 |
fpslimit | FPS limit for connected players, from 25 to 100. Default: 36 |
bandwidth_reduction | Saves bandwidth through various optimizations: none, medium (default), or maximum |
minclientversion_auto_update | Automatically keeps the minimum MTA client version up to date, making cheating more difficult: 0 off, 1 with a delay of a few days (default), 2 immediately |
backup_interval | Number of days between automatic backups, from 0 to 30. Default: 3. 0 disables backups. |
backup_copies | Number of these backups to keep, from 0 to 100. Default: 5 |
auth_serial_groups | ACL groups whose accounts are tied to the MTA client's serial number. Default: Admin |
scriptdebugloglevel | How much detail script errors are written to the logs/scripts.log file, from 0 (off, default) to 3 |
Your server creates MTA's automatic backups only at startup, in the deathmatch/backups folder. These do not replace ZapX backups in the Backups tab.
Only change auth_serial_groups if you know what you're doing. MTA notes that disabling this protection can affect visibility in the server list.
Made a mistake in mtaserver.conf and aren't sure how to fix it? Stop your server and rename the file, for example, to mtaserver.conf.alt. If mtaserver.conf is missing, your server will create a new one with the default values the next time it starts. It will automatically add your startup parameter settings again.
MTA assigns admin rights through user accounts and the acl.xml file in the deathmatch folder. See Become an admin to learn how to create an account and make it an admin. Always edit acl.xml while the server is stopped, as MTA may overwrite the file while running.
More guides for your MTA server:
Your MTA server is now configured just the way you want it. See Connect to the server to learn how to connect to your server. 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! 🙂
