Ralf122 Posted October 2, 2011 Share Posted October 2, 2011 is there a script for building mods? because there is a script for replacing cars and i would like building mods in my server. Link to comment
Ralf122 Posted October 2, 2011 Author Share Posted October 2, 2011 Ok but how do i know the ID of the building? Link to comment
Ralf122 Posted October 2, 2011 Author Share Posted October 2, 2011 is there a special script for building mods? Link to comment
Ralf122 Posted October 2, 2011 Author Share Posted October 2, 2011 ok but i found a mod but there's no dff only 2 txd, what do I have to do? Link to comment
Benevolence Posted October 2, 2011 Share Posted October 2, 2011 https://wiki.multitheftauto.com/wiki/EngineImportTXD This is a client side function. So when you load the script in meta.xml make it look like this To load the TXD file (same thing for DFF) use this as an example "carmodnamehere.txd"/> Link to comment
Ralf122 Posted October 2, 2011 Author Share Posted October 2, 2011 i don't understand this outputChatBox ( "> replacing billboards" ) txd_floors = engineLoadTXD ( "models/vgsn_billboard.txd" ) engineImportTXD ( txd_floors, 7300 ) can someone explain what txd_floors means? what does 7300 mean? Link to comment
DiSaMe Posted October 2, 2011 Share Posted October 2, 2011 txd_floors is the variable in which you store the TXD element and 7300 is object model ID. Link to comment
Ralf122 Posted October 3, 2011 Author Share Posted October 3, 2011 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
Benevolence Posted October 4, 2011 Share Posted October 4, 2011 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
Ralf122 Posted October 4, 2011 Author Share Posted October 4, 2011 I thnk i have this script already. it's for cars. i need building mods Link to comment
Puma Posted October 4, 2011 Share Posted October 4, 2011 I need a beer. Can someone get me a beer? Link to comment
karlis Posted October 6, 2011 Share Posted October 6, 2011 Stop the off-topic. tank your post is as offtopic as their are, in fact mine is aswell. they're at least making a point. Link to comment
Blaawee Posted November 1, 2011 Share Posted November 1, 2011 you mean to enter Building ??? there is resource called interor , I think ^^ search in resorce menu for 'int' and start it Link to comment
karlis Posted November 1, 2011 Share Posted November 1, 2011 he didn't mean that, and btw you can just replace the dff same as for cars. 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