![mta model 7 multi theft auto mta model 7 multi theft auto](https://lutris.net/media/games/screenshots/talidan_pic.jpg)
- #Mta model 7 multi theft auto how to#
- #Mta model 7 multi theft auto movie#
- #Mta model 7 multi theft auto zip file#
- #Mta model 7 multi theft auto Pc#
"()": Between these brackets, you can type names that refer to things in the game, such as the player or a vehicle. For example, I can call the function that is executed when the script starts "whazaaahhhhdupdupilikebeeer", because only the name itself is important, not the meaning of the words it contains. The fact that I used "resource_starts" as name does not have anything to do with the function of the function (if you get what I mean). The name must contain spaces ("blabla" is correct, "bla bla" is incorrect). A script can not contain multiple functions with the same name. "resource_says_hai": The name of the function. "function"": Tells the game that this is a new function A function contains actions and tells the game what to do when something happens. lua-script works.Īlmost every script-language works with functions. lua-scripting, so I'll explain everything.įirst, we must tell the script what to do when the map is started. I want this tutorial to be clear too for people that are new to. THE SCRIPT: CREATING A FUNCTION, ADDING EVENTHANDLERS AND CREATING OBJECTS Our scripts must be server-side, because the objects must threat all players equal at the same time, so there's no player left behind in actions. Server-side scripts are scripts that perform actions which affect everyone in the server, such as explosions and objects that are created by scripts. For example, client-side scripts are usded to change models ingame, but also the syntax of some functions can differ depending on the script-type.
#Mta model 7 multi theft auto Pc#
Client-side scripts are scripts that are downloaded to the user's PC and can differ at actions per person in the server. MTA uses two different sorts of scripts: client-side scripts and server-side scripts. The second thing that is important to know, is the "type" bit. If your script has tags, do not put it between these tags!ĭon't forget to change some things! First, you must change the name ("a") to the name of your script (quite obvious). Somewhere between the tags, you must create a line that defines the path to the. "meta.xml" must always be directly in the map folder, otherwise MTA won't recognize the map. map file starts in the folder where "meta.xml" is found. You'll probably see a "" tag, which defines where the. Between these tags, several paths and information are defined (like in html).
![mta model 7 multi theft auto mta model 7 multi theft auto](https://2.bp.blogspot.com/-GyhaFsnDHKE/WtfTVAVAwaI/AAAAAAAAATA/9BHGAGtVyR8gk9gRMuzVNIS0Hy-geN_AwCLcBGAs/s1600/mta-screen_2018-04-18_17-08-16.png)
First, on top and at the end it should contain a (the start) and a (the end) tag. Okay, so we need to define the script in "meta.xml". When MTA reads the map, it first reads "meta.xml", because that's the file that contains valuable information about the map: where can I find the scripts, the map itself, who is the author and even what weather the map uses, if you choose to define that in "meta.xml". zip-file that contains the map, always contains two files: the "yourname.map" file, which is the map, and another file called "meta.xml".
![mta model 7 multi theft auto mta model 7 multi theft auto](https://i.postimg.cc/mDmmnT9R/mta-screen-2020-03-19-03-18-35.png)
First, you must know that the folder or the. The next step is to tell the map that it must use the script. If you now hover over the file in the folder, it should say "LUA-file". By selecting "All files" in the "Save as type" box, Notepad allows you to choose a filetype yourself, which you can assign to the file by typing the extension right after the name. Then, name the file "a" (the name must not include spaces). When you do this, choose "All files" in the "Save as type" box, below the box where you fill in the file name. Start up the programme (Notepad), and save the empty file in the map-folder (menu: File -> Save as). In this whole tutorial, I'm using Notepad as editor for the script. NOTE: Make a copy of the map and put it somewhere safe, so you got a backup if anything goes wrong. zip-file ánd a folder that contains the same map, MTA won't see any difference and use them as two seperate maps. zip-files as a map, but if you got both a.
#Mta model 7 multi theft auto zip file#
zip file so only a new folder remains with the name of the map and a few files in it. zip-file here named with the name of your map). Go to the folder of that map (mostly "C:\Program Files\MTA San Andreas\server\mods\deathmatch\resources", you'll find a folder or a. This tutorial is an example of the scripting that causes the first three blocks to move up and down in the video at 0.21.įirst, you must have a MTA-DM map.
#Mta model 7 multi theft auto movie#
The movie about my last and, in my opinion, best map I made, you can see what I mean with "movable objects".
![mta model 7 multi theft auto mta model 7 multi theft auto](https://wiki.multitheftauto.com/images/1/1b/MTASElogo_wiki.png)
I add scripts to the map, which contain things like gun-pickups and, in this case, movable objects. This tutorial might seem a bit long, but that is because everything is explained very detailed an not because of the toughness of it.įirst of all, if you don't know what I'm talking about: I've made a few maps and they're like by a lot of people, because of the exclusivity.
#Mta model 7 multi theft auto how to#
Ok, so I promised a few people how to create moving objects in maps for MTA DM, race gamemode.