Michael_Sund Posted August 7, 2008 Posted August 7, 2008 Hello, how can i put cars in my MTA DM server? Can i put them in the .map file, or do i have to put them in lua? Plz post an example of vehicle code here!
Mr.Hankey Posted August 7, 2008 Posted August 7, 2008 you can make up a map file with cars pretty easy just create a new document, rename it to .map and add vehicles using the following syntax (look here for a complete documentation): <vehicle model="" posX="" posY="" posZ="" rotX="" rotY="" rotZ="" color="" upgrades="" paintjob="" plate=""/> note that every attrubute after posZ is optional The following example would create an Alpha at the coordinates x=15 y=43 z=20: <vehicle model="602" posX="15" posY="43" posZ="20"/> Now everything you need to do is create a meta.xml which can be easily done using this online meta.xml generator and place the created meta.xml + the mapfile that you specified in the meta.xml in a new folder or a zip file so you have a new map resource.
iam2noob4u Posted August 7, 2008 Posted August 7, 2008 (edited) If you want to do it using LUA, look here and here. Edit: Or just do what the above post says Edited December 19, 2014 by Guest
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