As an admin on your MTA server, you can manage players, control resources, and use the in-game admin panel. MTA assigns permissions through user accounts and the acl.xml file. An account becomes an admin as soon as it is listed in the Admin group in this file.
Create your account directly in the Console tab of your server in ZapX with addaccount, or in-game with /register. Then add it to acl.xml in the Files tab.
- Start your server in ZapX and open the Console tab.
- Enter and submit this command:
addaccount DeinName DeinPasswort
Replace DeinName with your preferred account name and DeinPasswort with your password. Neither can contain spaces. The server confirms this in the log with a line containing added account 'DeinName'. Make a note of your account name and password.
Anything you enter in the console will appear in the server log, including your password. If other people have access to your server, for example through service sharing, it's best to create your account in-game.
Command input is new for MTA. If your server was created before this feature was available, it needs a one-time update. If the console says “Your server doesn't accept commands yet,” apply the available update: When you open your server, the Update available window appears. Click Apply update there. This briefly resets the server, but your game data will be preserved. A regular restart isn't enough. If you don't see an update, contact support.
Alternatively, you can create the account in-game. Start your server and connect to it. For instructions, see our guide Connect to the server. Open the in-game chat and create your account with this command:
/register DeinName DeinPasswort
Replace DeinName with your preferred account name and DeinPasswort with a password of at least 4 characters. The server confirms in the chat that the account has been created. Make a note of your account name and password.
The /register command is provided by the admin resource, which is enabled in MTA's default configuration. If you have disabled it in mtaserver.conf, /register won't be available. Create your account in the console instead.
- Stop your server in ZapX. MTA reads
acl.xmlat startup and may overwrite the file while the server is running. - Open the Files tab and go to the
deathmatchfolder. - Open
acl.xmland find the<group name="Admin">section. In the default file, it looks like this:
<group name="Admin">
<acl name="Moderator" />
<acl name="SuperModerator" />
<acl name="Admin" />
<acl name="RPC" />
<object name="resource.admin" />
<object name="resource.webadmin" />
<object name="resource.acpanel" />
</group>
- Add a line with your account name inside this section:
<object name="user.DeinName" />
Replace DeinName with the exact name you used with addaccount or /register. The result should look like this:
<group name="Admin">
<acl name="Moderator" />
<acl name="SuperModerator" />
<acl name="Admin" />
<acl name="RPC" />
<object name="resource.admin" />
<object name="resource.webadmin" />
<object name="resource.acpanel" />
<object name="user.DeinName" />
</group>
- Save the file and start your server.
Only change the Admin group, and make sure every line is complete. If acl.xml contains errors, the permissions won't work.
You can also edit the file using an SFTP program. For instructions, see our guide Access via SFTP.
Connect to your server again and log in through the chat with your account:
/login DeinName DeinPasswort
You now have admin permissions. Press P to open the admin panel provided by the admin resource.
MTA protects admin accounts using the serial number of your MTA client. The first computer you use to log in as an admin is automatically authorized. MTA blocks logins from other computers until you authorize them. To do this, first try logging in from the new computer, then enter this command in your server's Console:
authserial DeinName
This authorizes the serial number that most recently tried to log in to this account. Use authserial DeinName list to see which serial numbers are registered for the account.
Follow the same steps for each additional admin: create the account in the console with addaccount, or have the player create it in-game with /register. With the server stopped, add the account name to the Admin group in acl.xml as <object name="user.AccountName" />, then start the server again. The player can then log in with /login.
In MTA, create your account in the console with addaccount or in-game with /register. With the server stopped, add it to the Admin group in acl.xml, then log in with /login. Authorize new computers in the console with authserial. If you have questions or need help, our support team is here for you every day! 🙂
