SiK Speed is King

General Chatter => Gaming => Topic started by: ISHI on October 04, 2013, 01:55:27 PM

Title: Modding cars in MTA SA
Post by: ISHI on October 04, 2013, 01:55:27 PM
Ahoy guys!
I need just 1 advice. I have tried to find it on internet, but no effect. I just want to know how to put any mod of car to mta sa race, to my map. Thanks for help!
Title: Re: Moding cars in MTA SA
Post by: Sexmaniac on October 04, 2013, 02:28:23 PM
Ahoy guys!
I need just 1 advice. I have tried to find it on internet, but no effect. I just want to know how to put any mod of car to mta sa race, to my map. Thanks for help!

I know jazzy knows a lot about it, but he seems very busy on the moment....
Title: Re: Moding cars in MTA SA
Post by: Giuvannaru91 on October 04, 2013, 02:58:22 PM
Ahoy guys!
I need just 1 advice. I have tried to find it on internet, but no effect. I just want to know how to put any mod of car to mta sa race, to my map. Thanks for help!

send pm for jazzy  ;)
Title: Re: Moding cars in MTA SA
Post by: r1d3r_blad3 on October 04, 2013, 04:45:34 PM
I'm sure even Evolution must know how doing that
Title: Re: Moding cars in MTA SA
Post by: Clark_Kent on October 04, 2013, 05:10:32 PM
Try this:

1 put your car files in the script directory (should be a txd and a dff file)

2 make a textfile named vehicle.lua

3 insert this code in vehicle.lua:

Code: [Select]
addEventHandler('onClientResourceStart', resourceRoot,
function()
txd = engineLoadTXD ( "nfernus.txd" )
engineImportTXD ( txd, 411 )
       
dff = engineLoadDFF ( "infernus.dff", 411 )
        engineReplaceModel ( dff, 411 )
end
)

4 change the "infernus.xxx" to your files. also change vehicle id (411) to what model you will replace, ID´s are here https://wiki.multitheftauto.com/wiki/Vehicle_IDs

5 save file

6 open meta.xml add these lines:

Code: [Select]
    <file src="infernus.txd" />
    <file src="infernus.dff" />
    <script src="vehicle.lua" type="client" />
mod them to match your file names.

7 save

8 test

Think that will be all, if not work try /debugscript 3 to se the error code.
Title: Re: Moding cars in MTA SA
Post by: Slovakia on October 04, 2013, 06:15:27 PM
zdá sa mi že si slovák nie? napíš mi do pm-ky, už som to robil, môžem vysvetli?.  :)

it seems to me that the Slovaks not? Write to me in PM-s, I did it, I explain?. :)
Title: Re: Moding cars in MTA SA
Post by: Jazzy @ on October 04, 2013, 06:46:39 PM
Try this:

1 put your car files in the script directory (should be a txd and a dff file)

2 make a textfile named vehicle.lua

3 insert this code in vehicle.lua:

Code: [Select]
addEventHandler('onClientResourceStart', resourceRoot,
function()
txd = engineLoadTXD ( "nfernus.txd" )
engineImportTXD ( txd, 411 )
       
dff = engineLoadDFF ( "infernus.dff", 411 )
        engineReplaceModel ( dff, 411 )
end
)

4 change the "infernus.xxx" to your files. also change vehicle id (411) to what model you will replace, ID´s are here https://wiki.multitheftauto.com/wiki/Vehicle_IDs

5 save file

6 open meta.xml add these lines:

Code: [Select]
    <file src="infernus.txd" />
    <file src="infernus.dff" />
    <script src="vehicle.lua" type="client" />
mod them to match your file names.

7 save

8 test

Think that will be all, if not work try /debugscript 3 to se the error code.

Sorry guys, this "SiK Fun Server" keeps me quite busy,
Clark explained it very clearly ;). take care with ( "nfernus.txd" ) in the .lua :P