In MTA every mode, map and script lives as a resource. A resource is described by its meta.xml file, which tells the server which scripts and files to load. This guide shows the most important meta.xml elements and a first working structure.
This guide is based on the official MTA wiki (checked on 11 November 2026). The advice on folder structure and naming describes general practice.
1. What is meta.xml for?
According to the wiki, meta.xml gives MTA metadata about a resource, including its name, the scripts to include and which files to precache for clients. It is written in XML.
2. A legfontosabb elemek
| Elem | What it is for |
|---|---|
| info | Describes the resource: author, version, name, description and type (gamemode, script, map or misc). |
| script | Specifies source code with the src and type (client, server or shared) parameters. |
| file | Declares client-side files such as images, .txd, .col, .dff or .xml files. |
| map | Specifies a .map file. |
| include | Names another resource that has to be started together with this one. |
| export | Exposes a function to other resources. |
| min_mta_version | Sets the minimum MTA version for the client and the server. |
3. A minimal structure
According to the wiki's quick-start template, a resource needs only a meta.xml and two scripts: a server-side and a client-side one. In meta.xml the two scripts are declared with separate script elements whose type is server and client respectively.
<meta>
<script src="server.lua" type="server" />
<script src="client.lua" type="client" />
</meta>4. Keeping resources in order
- Give every resource a clear name and version in the info element.
- Keep the files sent to the client small, because download time slows down connecting.
- Declare dependencies with the include element so resources start in the right order.
- Start a new resource on a test server first and only then on the live server.



