Author Topic: Modding cars in MTA SA  (Read 2252 times)

0 Members and 1 Guest are viewing this topic.

Offline ISHI

  • Nooblit
  • *
  • Posts: 5
  • Yay or Nay +0/-0
    • View Profile
Modding cars in MTA SA
« 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!
« Last Edit: March 24, 2016, 08:08:48 AM by 1thwonder »

Offline Sexmaniac

  • [SiK] Member
  • A God
  • ***
  • Posts: 2408
  • Yay or Nay +1024/-4
    • View Profile
    • SiK - Speed is king - MTA Racing community!
Re: Moding cars in MTA SA
« Reply #1 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....

Offline Giuvannaru91

  • [SiK] Member
  • All Pro
  • ***
  • Posts: 1544
  • Yay or Nay +22/-9
    • View Profile
Re: Moding cars in MTA SA
« Reply #2 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  ;)


Turtle fast :D
Ty sex :)

Offline r1d3r_blad3

  • Friend of SiK
  • Nub
  • **
  • Posts: 364
  • Yay or Nay +6/-6
  • ALO! :-))
    • View Profile
Re: Moding cars in MTA SA
« Reply #3 on: October 04, 2013, 04:45:34 PM »
I'm sure even Evolution must know how doing that
My certificate on the nickname:

Offline Clark_Kent

  • Nooblit
  • *
  • Posts: 126
  • Yay or Nay +5/-0
    • View Profile
Re: Moding cars in MTA SA
« Reply #4 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.
« Last Edit: October 04, 2013, 05:12:04 PM by Clark_Kent »

Offline Slovakia

  • [SiK] Member
  • Nooblit
  • ***
  • Posts: 86
  • Yay or Nay +1/-0
    • View Profile
Re: Moding cars in MTA SA
« Reply #5 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?. :)
« Last Edit: October 05, 2013, 04:22:53 AM by Sexmaniac »

Offline Jazzy @

  • Nooblit
  • *
  • Posts: 179
  • Yay or Nay +10/-0
    • View Profile
Re: Moding cars in MTA SA
« Reply #6 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

 

anything