CsenaHUN Posted August 8, 2010 Share Posted August 8, 2010 (edited) Custom Vehicle1) First you have to find a good custom vehicle for your map. There are a lots of site where you can download a tons custom vehicle.http://www.thegtaplace.com/http://www.gtainside.com/en/news.phphttp://gta-worldmods.t-n-network.de/phpkit/start/include.php?path=start.phpGoogle is your friend! Copy the txd and the dff file into your map folder. (You can find your map here: MTA San Andreas\server\mods\deathmatch\resources\)Important: Some vehicle have different handling (more slippery) and big size. Dont use more than 5MB. If the txd file big, it is possible to cut the size with TXD workshop programe. You can download the programe here: http://www.thegtaplace.com/downloads/f722-txd-workshop-4-0b It is free.Open the *.txd file with workshop. You can see the texture list. Sometimes custom model makers forgot compress the textures. Compress all of them. Or if you have photoshop skill you can change the poli number too. But this is another totorial. But it is easyer use custom vehicle with less size.Note: When you download a vehicle, generally the txd and the dff file's name one of GTA SA vehicle's name (infernus, turismo, ect). Coz the custom vehicle made for change that original vehicle.For example: Acura Rsx Shark Speed http://www.gtainside.com/en/download.php?do=comments&cat=321&start=0&id=27675&orderBy= This one made for change infernus. You have to test some custom model to find the best one. Which has not too big file and has same handling.2) Script:Use notepad or Lua for Windows program (http://code.google.com/p/luaforwindows/)addEventHandler('onClientResourceStart', resourceRoot, function() txd = engineLoadTXD ( "***.txd" ) -- ***.txd: the txd file what you want use. for exampe infernus.txd engineImportTXD ( txd, *** ) -- ***: the original vehicle id what you want replace. for example 411 dff = engineLoadDFF ( "***.dff", *** ) -- ***.dff: the dff file what you want use. for exampla infernus.dff. *** the original vehicle id what you want replace. for example 411 engineReplaceModel ( dff, *** ) -- the original vehicle id what you want replace. for example 411end )GTA SA vehicle id list: http://wiki.mtasa.com/index.php?title=Vehicle_IDs and you can find vehicle id in your map file too. for example: <spawnpoint id="spawnpoint (Infernus) (30)" vehicle="411 ...Example script file: This one replace infernusaddEventHandler('onClientResourceStart', resourceRoot, function() txd = engineLoadTXD ( "infernus.txd" ) engineImportTXD ( txd, 411 ) dff = engineLoadDFF ( "infernus.dff", 411 ) engineReplaceModel ( dff, 411 )end )Save your script file and put it in your map folder. For examle: vehicle.lua or car.lua or what you want.3) meta.xmlYou have the script and the model now. You have to load your script and the model in the meta file. Put this 3 line in your map's meta.xml file: <file src="***.txd" /> --***.txd: the txd file what you used. for example infernus.txd (It is necessary to use the same name that you used in your vehicle script file) <file src="***.dff" /> --***.dff: the dff file what you used. for example infernus.dff (It is necessary to use the same name that you used in your vehicle script file) <script src="***.lua" type="client" /> --***.lua: the lua file what you made. for example vehicle.lua or car.luaExample meta file: <meta> <file src="infernus.txd" /> <file src="infernus.dff" /> <script src="vehicle.lua" type="client" /> <info gamemodes="race" type="map"... ect ect</meta>4) Map file:You are almost done. When you test your map, the custom model is loading now. BUT. As you can see your new custom model has original wheels.Open your map file with notepad and use this command in every spawnpoint line:upgrades="0"For example:<spawnpoint id="spawnpoint (Infernus) (1)" vehicle="411" interior="0" posX="3946.408203125" posY="-2606.8208007813" posZ="11.070000648499" rotX="0" rotY="0" rotZ="179.99450683594" upgrades="0" />When you use more custom model in your map you have to use this 'upgrades="0"' command in vehicle change cp(s). Like this: <checkpoint id="checkpoint (4)" type="checkpoint" color="#FF000099" size="7" interior="0" nextid="checkpoint (5)" posX="3268.640625" posY="-2551.8454589844" posZ="30.288398742676" rotX="0" rotY="0" rotZ="0" vehicle="434" upgrades="0" />Some site where you can find more info:MTA wiki: http://wiki.mtasa.com/wiki/Main_PageOfficial MTA forum: http://forum.multitheftauto.com/Custom Music by BinSlayerGo to this link and copy and paste everything from it to a "music.lua" file, which you will put in the map archive:http://www.xoti.net/stuff/uploads/music_3bfb.luaNext, put your music file in a folder called "files"(create it!) in your map-archive as "music.mp3"Then edit your meta.xml and add the following right BEFORE the </meta> line:<file src="files/music.mp3" /><script src="music.lua" type="client" />Make sure all files are in the right place. This should do the trick. Have fun mapping!Custom Object SkinYou need this utils:imgtool downloadtxdworkshop downloadPhotoshop or paint.notepadmta downloadOpen map editorput this object where you want (put a spawnpoint close to the object): billbrdlan_10 id:4238save your map.Start imgtool, open this file: C:\Program Files (x86)\Rockstar Games\GTA San Andreas\models\gta3.imgedit, search, billbrd01_lan commands, extract, save it where you want. (Maybe you should make a Temp folder somewhere and save every temporary files there)open the saved file (billbrd01_lan.txd) with txdworkshopyou can see 5 image, select heat_02, export, bmp, saveopen the saved file with paint or photoshop and edit the picture as you wish (http://cooltext.com/ to make logo. easy to use)save the picture what you madeopen txd workshop againfile, new, 32BPPimport, find your modified picturedouble click on the small picture. You have to see Image properties now. name: heat_02, compressed, ok. Save your file as skin.txd in your map folder. (You can find your map here: C:\Program Files (x86)\MTA San Andreas\server\mods\deathmatch\resources\yourmapname)Notepad save this script as model.lua into your map folderaddEventHandler('onClientResourceStart', resourceRoot, function() txd_nick = engineLoadTXD ( "skin.txd" )engineImportTXD ( txd_nick, 4238 )end )open meta.xml with notepadput this two line after <meta> <script src="model.lua" type="client" /> <file src="skin.txd" />saveStart your map in the editorIf you want modifie other object you have to check this page: linkLast but not least! Custom model + music + custom object = Download HellSo do not use all of them! Edited January 16, 2011 by CsenaHUN Gametaff, minowux and victor40 3 Quote Link to comment
Ruff Posted August 8, 2010 Share Posted August 8, 2010 Thanks a lot! Really useful.Going to use this in my new map. Quote Link to comment
BinSlayer Posted August 8, 2010 Share Posted August 8, 2010 (edited) How to add custom music to your maps!Go to this link and copy and paste everything from it to a "music.lua" file, which you will put in the map archive: http://www.xoti.net/stuff/uploads/music_3bfb.luaNext, put your music file in a folder called "files"(create it!) in your map-archive as "music.mp3"Then edit your meta.xml and add the following right BEFORE the </meta> line:<file src="files/music.mp3" /><script src="music.lua" type="client" />Make sure all files are in the right place. This should do the trick. Have fun mapping!Csena: maybe you can add this to the first post so it's more visible Edited August 8, 2010 by BinSlayer Quote Link to comment
BlueYoshi97 Posted August 14, 2010 Share Posted August 14, 2010 Thank you so much! Quote Link to comment
Cookie Posted August 20, 2010 Share Posted August 20, 2010 Thnx BinSlayer it worked. Quote Link to comment
xerox Posted October 30, 2010 Share Posted October 30, 2010 can some1 help me im trying to add a custom model but i need to change the handling i got the handling.cfg code but how do i turn that into a script?CHEETAH 1200.0 2500.0 1.8 0.0 -0.15 -0.2 70 0.75 0.90 0.48 5 230.0 30.0 10.0 R P 8.0 0.58 0 30.0 1.0 0.13 5.0 0.25 -0.13 0.45 0.3 0.15 0.54 105000 c0002004 204000 0 0 1 Quote Link to comment
dodgecharger123 Posted November 26, 2010 Share Posted November 26, 2010 I still doesn't understand the 'files' in map archive. May i know where's the map archive? Im a newbie in mapping. Quote Link to comment
CsenaHUN Posted November 26, 2010 Author Share Posted November 26, 2010 You can find your map here: MTA San Andreas\server\mods\deathmatch\resources\yourmap Quote Link to comment
BabaJaga Posted January 6, 2011 Share Posted January 6, 2011 (edited) and i can to my map embed billboard with my nick, can it?something like this: Edited January 6, 2011 by BabaJaga Quote Link to comment
SDK Posted January 6, 2011 Share Posted January 6, 2011 Sure, download it here, install it, start a local server, do some scripting magic, copy the files, and integrate in your race map.Or ask Emanuel how he did it. Quote Link to comment
CsenaHUN Posted January 6, 2011 Author Share Posted January 6, 2011 (edited) Well, this will be fucking long totorial (to write it).You need this utils:imgtool downloadtxdworkshop downloadPhotoshop or paint.notepadmta downloadOpen map editorput this object where you want (put a spawnpoint close to the object): billbrdlan_10 id:4238save your map.Start imgtool, open this file: C:\Program Files (x86)\Rockstar Games\GTA San Andreas\models\gta3.imgedit, search, billbrd01_lan commands, extract, save it where you want. (Maybe you should make a Temp folder somewhere and save every temporary files there)open the saved file (billbrd01_lan.txd) with txdworkshopyou can see 5 image, select heat_02, export, bmp, saveopen the saved file with paint or photoshop and edit the picture as you wish (http://cooltext.com/ to make logo. easy to use)save the picture what you madeopen txd workshop againfile, new, 32BPPimport, find your modified picturedouble click on the small picture. You have to see Image properties now. name: heat_02, compressed, ok. Save your file as skin.txd in your map folder. (You can find your map here: C:\Program Files (x86)\MTA San Andreas\server\mods\deathmatch\resources\yourmapname)Notepad save this script as model.lua into your map folderaddEventHandler('onClientResourceStart', resourceRoot, function() txd_nick = engineLoadTXD ( "skin.txd" )engineImportTXD ( txd_nick, 4238 )end )open meta.xml with notepadput this two line after <meta> <script src="model.lua" type="client" /> <file src="skin.txd" />saveStart your map in the editorIf you want modifie other object you have to check this page: link Edited January 7, 2011 by CsenaHUN MegasXLR 1 Quote Link to comment
FOTL.Emanuel Posted January 7, 2011 Share Posted January 7, 2011 Pretty much what i was going to say, even the object page i use is the same Quote Link to comment
BabaJaga Posted January 7, 2011 Share Posted January 7, 2011 wow, thanks Csena, this i was searching ... Quote Link to comment
terminator Posted January 12, 2011 Share Posted January 12, 2011 Nice tutorial csena! and could you please tell me what version of ENB you are using? mine seems to bug the game. :meh: Quote Link to comment
CsenaHUN Posted January 12, 2011 Author Share Posted January 12, 2011 ENB? Maybe it is too late and I am too tired but i dont know what do you mean. (O)_(O) 1 Quote Link to comment
Ruff Posted January 14, 2011 Share Posted January 14, 2011 Nice tutorial csena! and could you please tell me what version of ENB you are using? mine seems to bug the game. :meh: He's using a totally different mod called UltraThing. Well not totally different because it adds a similiar affect.You can find it in his thread here: Quote Link to comment
JOKERCranK Posted January 14, 2011 Share Posted January 14, 2011 Very nice. Thank you. It helped a Lot ! Quote Link to comment
rijads Posted January 19, 2011 Share Posted January 19, 2011 (edited) Thanks mate, awesome post, though, i have some questions, hope you ll have soon some time to answer.1.I cant find id of vehiclelights128.I need it so i can add HQLMv2 mod into my server (high quality lights mod v2).2.Do you know how to add song, so it only plays on certain places like 10 meters around spawn point, or just first 30 secs, when players logs in ?3. Is it possible to add handling lines for custom vehicles i added to server, or is it possible to add whole handling.cfg so to players that connect to the server, that handling overwrites their own while in the server ?I heard that it's not yet possible, but they said they ll implement it in 1.1 version, just want to make it sure. Edited January 19, 2011 by rijads Quote Link to comment
terminator Posted January 19, 2011 Share Posted January 19, 2011 Nice tutorial csena! and could you please tell me what version of ENB you are using? mine seems to bug the game. :meh: He's using a totally different mod called UltraThing. Well not totally different because it adds a similiar affect.You can find it in his thread here: thnx ruff Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.