Skip to content

MTA (Multi Theft Auto): Server Configuration

Learn how to configure the server name, password, player limit, server list, resources, and voice chat for your Multi Theft Auto server.

27 November 20266 min read5 Views0 helpful

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

Introduction

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.

How configuration works

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 the deathmatch folder 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.

Important

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

Startup parameterDescription
Server nameYour server's name in the in-game server list. Default: ZAP MTA Server
Max. playersThe number of players who can play on your server at the same time. Default: 20
Server passwordPassword required to join. Leave blank for an open server. A password entered only in mtaserver.conf will remain in place.
Operator emailContact address for the MTA team. It is not publicly visible.
Show in server listRegisters your server in the public MTA server list. Default: 1 (on)
External download URLAddress 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.

Server list and resource downloads

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.

Tip

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.

Resources and game mode

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:

xml
<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:

CommandDescription
refreshRefreshes 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".

Info

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.

Tip

If the Console doesn't accept commands yet, your server needs a one-time update. Learn how to apply it in Automated server messages.

More settings in mtaserver.conf

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:

SettingDescription
voiceSet to 1 to enable in-game voice chat. Default: 0 (off)
voice_samplerateVoice chat quality: 0 (8 kHz), 1 (16 kHz, default), or 2 (32 kHz). Higher values require more bandwidth.
voice_qualityOverall voice chat quality, from 0 to 10. Default: 4
fpslimitFPS limit for connected players, from 25 to 100. Default: 36
bandwidth_reductionSaves bandwidth through various optimizations: none, medium (default), or maximum
minclientversion_auto_updateAutomatically 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_intervalNumber of days between automatic backups, from 0 to 30. Default: 3. 0 disables backups.
backup_copiesNumber of these backups to keep, from 0 to 100. Default: 5
auth_serial_groupsACL groups whose accounts are tied to the MTA client's serial number. Default: Admin
scriptdebugloglevelHow 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.

Warning

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.

Tip

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:

Conclusion

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

Free tools

MTA (Multi Theft Auto) Tools

View all

FAQ

Frequently asked questions

Under Startup parameters in the Configuration tab. There you can set the server name, max. players, server password, operator email, whether the server appears in the server list, and resource downloads. All other settings, such as voice chat and which resources load at startup, are in the deathmatch/mtaserver.conf file.
Every time your server starts, it writes the startup parameter values to the file, such as servername, maxplayers, ase, and the ports, as well as password if you've entered a server password. Always change these values in the startup parameters. All other entries remain unchanged.
Clear the Server password field in the startup parameters and restart your server. It will then remove the password it entered in the deathmatch/mtaserver.conf file from that field. If the password is only in the file, clear the password entry there, so it reads <password></password>, and restart your server.

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.