SiK Speed is King
General Chatter => Gaming => Topic started 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!
-
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....
-
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 ;)
-
I'm sure even Evolution must know how doing that
-
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:
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:
<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.
-
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?. :)
-
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:
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:
<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