Skip to content

Mtaserver

github-actions[bot] edited this page Sep 11, 2026 · 2 revisions

Multi Theft Auto

This guide covers the mtaserver module in AlphaGSM.

mtaserver is currently PASSED on the documented Ubuntu 24.04 Linux baseline. The checked-in GitHub validation path for this server is Docker-first through the shared steamcmd-linux runtime, with the built-in HTTP health surface on httpport = port + 2 after AlphaGSM disables ase.

query and info resolve the runtime's reachable host, including Docker's published endpoint when AlphaGSM runs in a separate container. This routing correction is awaiting replacement GitHub CI validation.

Requirements

  • docker for the validated Linux lifecycle
  • Python packages from requirements.txt

Local process mode still exists for advanced/manual use, but the current supported AlphaGSM lifecycle on Linux is the shared Docker-backed steamcmd-linux runtime path.

Quick Start

Create the server:

alphagsm mymtaserve create mtaserver

Run setup:

alphagsm mymtaserve setup

Start it:

alphagsm mymtaserve start

Check it:

alphagsm mymtaserve status

Stop it:

alphagsm mymtaserve stop

Setup Details

Setup configures:

  • the game port (default 22003)
  • the built-in HTTP listener on httpport = port + 2
  • the install directory
  • downloads and extracts the main Linux server archive
  • auto-installs the official baseconfig.tar.gz bundle when mods/deathmatch/mtaserver.conf is missing
  • syncs mods/deathmatch/mtaserver.conf so AlphaGSM owns:
    • serverport
    • httpserver = 1
    • httpport
    • ase = 0

AlphaGSM health checks use MTA's built-in HTTP listener, so:

  • query checks generic tcp on httpport
  • info and info --json report the same tcp listener

Disabling ase avoids the extra unmanaged UDP announce port at port + 123, which keeps AlphaGSM's owned port set aligned with the validated lifecycle.

Useful Commands

alphagsm mymtaserve update
alphagsm mymtaserve backup

Mod Sources

Multi Theft Auto resource management uses the standard resource tree under mods/deathmatch/resources/.

  • AlphaGSM stores MTA mod cache/state under .alphagsm/mods/mtaserver/.
  • Current mod source support is manifest/curated, url, and community.
  • manifest installs checked-in MTA resource families from immutable release archives. The current built-in families are pattach, chat2, and animationspanel.
  • url accepts direct archive URLs for resource packs when the archive exposes either mods/deathmatch/resources/<name>/..., a top-level resource directory that contains meta.xml, or a resource archive whose root itself contains meta.xml.
  • community accepts canonical MTA community detail page URLs such as https://community.multitheftauto.com/index.php?p=resources&s=details&id=<id> and follows the upstream cookie-backed download flow automatically.
  • AlphaGSM records installed resource files per entry so mod cleanup removes only tracked resources and leaves unrelated resources alone.

Examples:

alphagsm mymtaserve mod add manifest pattach
alphagsm mymtaserve mod add url https://resources.example.invalid/coolrace.zip
alphagsm mymtaserve mod add community https://community.multitheftauto.com/index.php?p=resources&s=details&id=19052
alphagsm mymtaserve mod apply
alphagsm mymtaserve mod cleanup

Some resources still need normal MTA-side enablement or configuration after installation, such as adding them to mtaserver.conf, granting ACL rights, or starting the resource in-game.

Notes

  • Module name: mtaserver
  • Default port: 22003
  • Default AlphaGSM-managed httpport: 22005

Server variables

After create mtaserver, inspect or change these with set:

alphagsm myserver set --list
alphagsm myserver set KEY --describe
alphagsm myserver set KEY VALUE

This module does not declare schema-backed keys. set --list after create is still the live source of truth.

Developer Notes

Run File

  • Executable: mta-server64
  • Location: <install_dir>/mta-server64
  • Engine: Custom

Server Configuration

Maps and Mods

  • Map directory: mods/deathmatch/resources/
  • Mod directory: mods/deathmatch/resources/
  • Workshop support: No

Clone this wiki locally