Jump to content

Building mods


Ralf122

Recommended Posts

so if i'm right is this the Script

outputChatBox ( "> replacing billboards" ) 
txd_floors = engineLoadTXD ( "models/vgsn_billboard.txd" ) 
engineImportTXD ( txd_floors, 7300 ) 

Meta

<meta> 
     <script src="3WTC.lua" type="client"/> 
     <file src="carmodnamehere.txd"/> 
<meta> 

but is this only for replacing billboard? because;

outputChatBox ( "> replacing billboards" )

txd_floors = engineLoadTXD ( "models/vgsn_billboard.txd" )

Link to comment

Don't worry outputChatBox all it does is announce in the in-game chat that it's replacing a vehicle.

Okay make a resource folder, name it whatever probably something like "mods". Now in this folder, create another folder and call it "files". Put the TXD and DFF car files in the files folder then go back to the regular directory. Create a new file for example carname.lua and inside this file you are going to copy and paste this.

 txd = engineLoadTXD ( "files/filename.txd" ) 
engineImportTXD ( txd, 587 ) -- 587 is an example of a vehicle ID. Put the ID of the vehicle you want to use the car mod on. You can find vehicle ID's at [url=https://wiki.multitheftauto.com/wiki/Vehicle_IDs]https://wiki.multitheftauto.com/wiki/Vehicle_IDs[/url] 
dff = engineLoadDFF ( "files/filename.dff", 587 ) -- Same thing here, put the vehicle ID again. 
engineReplaceModel ( dff, 587 ) -- Once again, put the vehicle ID here again. 

Where it says 'filename' write the name of your TXD and DFF files, obviously.

Then, create a meta.xml

Inside the meta.xml copy and paste this.

 
"files/filename.txd"/> 
"files/filename.dff"/> 
  

Where it says 'filename' write the name of your TXD and DFF files, obviously.

After you've done all of that, start the resource and the mod should work if done properly.

Link to comment
  • 4 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...