-_-Varial^_^ Posted April 25, 2012 Share Posted April 25, 2012 can someone send me a site to make car mods or explain me how? Link to comment
Axel Posted April 25, 2012 Share Posted April 25, 2012 Ye, here: function mod() -- clientside txd = engineLoadTXD("name.txd", 425 ) -- name.txd = txd file, 425 = car id engineImportTXD(dff, 425) dff = engineLoadDFF("name.dff", 425 ) -- name.dff = dff file, 425 = car id engineReplaceModel(dff, 425) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), mod) Link to comment
-_-Varial^_^ Posted April 26, 2012 Author Share Posted April 26, 2012 axel, i dont know how this work so a little bit mor explaination please... Link to comment
Scripting Moderators Sarrum Posted April 27, 2012 Scripting Moderators Share Posted April 27, 2012 http://mta.dzek.eu/vehicle/ ? Link to comment
Castillo Posted April 27, 2012 Share Posted April 27, 2012 Topic moved to "Scripting" section. Link to comment
qaisjp Posted April 27, 2012 Share Posted April 27, 2012 To create car mods, you aren't allowed to post here, goto http://gtanet.com and ask there. To add car mods to the server, you may ask here. Link to comment
Castillo Posted April 28, 2012 Share Posted April 28, 2012 @Noddy: That doesn't make any sense, why should he ask here before add them to his/her server? @cbsracing: You may put the vehicle mods on your server, but please don't uploaded them to the MTA Community. Link to comment
qaisjp Posted April 29, 2012 Share Posted April 29, 2012 You misinterpreted my post, what I said, in baby language, was if he wanted to know how to CREATED DFF AND TXD then go to gtanet.com. If he wanted to know HOW to add to the server, he can ask here how to. Link to comment
Michael# Posted April 29, 2012 Share Posted April 29, 2012 local tVehicles = { { txd = 'data/infernus.txd', txdID = 411, dff = 'data/infernus.dff', dffID = 411 }; { txd = 'data/elegy.txd', txdID = 562, dff = 'data/elegy.dff', dffID = 562 }; } addEventHandler ( 'onClientResourceStart', resourceRoot, function ( ) for _, vehicle in pairs ( tVehicles ) do engineReplaceModel ( engineLoadDFF ( vehicle.dff, vehicle.dffID ), vehicle.dffID ); engineImportTXD ( engineLoadTXD ( vehicle.txd, vehicle.txdID ), vehicle.txdID ); end end ) To add more vehicles to the table do: { txd = 'pathToTheTXD', txdID = idOfTheTxdFile, dff = 'pathToTheDFF', dffID = idOfTheDffFile }; Link to comment
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