Jump to content

Convert Mappings to Lua


Recommended Posts



As most of you know if you want to use a mapping on a server, most servers prefer to have it in .lua format, converting a .map file to a .lua file can be a pain, there are some converters out there (the one I have been using : http://gtamap.delux-host.com/converter/) But at least from what I had seen they only convert the objects, they do not care about scale, they do not convert removing world objects, vehicles, markers, peds.

So in order to be able to convert this better, without manually converting removeWorldObject from .map to removeWorldModel() for .lua (and a lot of other functions) I have created a MTA script which will convert the file for you without you requiring to do anything manually.

Installation & usage instructions


Download the installer:nanobob.net
Run the installer
The installer will ask if you want to replace your acl.xml file, if you have never before edited the acl.xml file click yes. If you have edited the acl.xml file proceed with the manual ACL instructions below
Once the installer has finished it will run your server, in the window type the following: "start editor", and type:"start mapconverter"

Manual ACL instructions:

in order to add the resource to the ACL go to your server/mods/deathmatch folder.

turn your server off
open acl.xml with a text editor
under the line "<group name="Admin">"
add the line <object name="resource.mapConverter"></object> "
save the file and turn your server back on

How to connect to your local server:

Go ingame.
Go to server browser.
Go to the local tab
Your server should be there.


When ingame, turn on the editor ('start editor' in the console)

Also turn on the map converter ('start mapconverter' in the console) if you have not done so already

Now when you have finished mapping, click the save as button. There will be a checkbox with the text :"Save .lua copy". Check this checkbox and save the file, when it saves it will convert the file and output the file size.

By the way, the code is not compiled, feel free to use my code to learn from. But do not simply copy paste and call it your own.

Link to comment
Share on other sites

Y u no fix the web version. Much easier to use for people that have no knowledge on MTA servers (not me) ( even tho u explained it correctly ). Guess thats a solution that can be used by every pleb on SAES ( even @Jasper )

Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...

Little heads up

When you launch the MTA Map Converter.exe in order to install it, the default installation folder is

C:\Program Files (x86)\MTA San Andreas 1.5\server\mods\deathmatch\resources[NanoBob]\mapConverter

People who has MTA installed on D instead of C, like myself, may run into this problem as I did:

When you change the default installation folder and proceed, it will not be installed properly, therefore you must avoid changing the default installation direction and let it install on C anyway even though you may not have MTA installed on C. After the installation is complete, go to your C drive and copy the files from there to its correct location and it will work.

Wanted to give you guys a heads up as I ended up spending an hour trying to find what I was doing wrong even though I followed all instructions properly.

Link to comment
Share on other sites

  • Create New...