Skip to content
Montavio Group

Your first Lua resource on an MTA server: folder, meta.xml, start

An MTA resource can be started from three files. We show step by step where it goes, how you describe it in meta.xml and how you start it.

Montavio expert team2 min read
A laptop screen with program code in an editor, an illustration of Lua scripting

Photo: Daniil Komov / Pexels (Montavio composition) · illustration

In brief

According to the official MTA wiki, resources go into the server's mods/deathmatch/resources folder and meta.xml describes the scripts to load. We go through the structure of a minimal resource and starting it from the server console.

Where does the resource go?

Copy the resource, as a ZIP file or a folder, into mods/deathmatch/resources. The name of the folder becomes the resource's name.

The server recognises a new resource only after the refresh command, so run one in the console after copying.

meta.xml and the two scripts

According to the wiki, meta.xml specifies which scripts to load. The quick-start template uses two script elements: a server-side one and a client-side one.

The type parameter can be server or client. The server sends the client-side script to the connecting player, so keep it small.

Starting and stopping

In the server console you can start and stop the resource with the start and stop commands, giving its name. refresh rereads the folder.

If the script reports an error, you will also see where it happened in the server log. After fixing it, stop and restart the resource.

Mikor kell nagyobb csomag?

A few small resources are fine on the Start plan. If you run many scripts and models or the player count grows, memory use grows too.

According to the manual it is worth watching when the MTA Server process grows beyond roughly 1.2 GB and planning regular restarts.

MTA server hosting

A fixed-price Multi Theft Auto server for Lua resources.

View MTA plans

Sources and further reading

Montavio newsletter

Build a better website.
One useful email a month.

Practical tips on websites, SEO, security and online growth, without the noise.

Double opt-in confirmation is required. Privacy notice