Dufabo Posted January 21, 2019 Author Share Posted January 21, 2019 (All credits goes to @NanoBob I am just moving his post from archive)Hello,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 instructionsInstallationDownload the installer: nanobob.netRun the installerThe 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 belowOnce 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 offopen acl.xml with a text editorunder 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 tabYour server should be there.Usage: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 alreadyNow 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 More sharing options...
jpslimmen2 Posted June 26, 2019 Share Posted June 26, 2019 Nice tool!!but is it possible to put the client lue and the server lua in the same file?Cause now when you convert it you have 2 files and if the client file isent loaded the breakable object that are set to unbreakeble will still break. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now