Thimo Posted July 31, 2010 Share Posted July 31, 2010 Hey dudes i was wondering how they made carmods for mta with a script not with stuff like mod installer does anyone know how to make that i really want it ! thanks! Link to comment
blas95 Posted July 31, 2010 Share Posted July 31, 2010 https://wiki.multitheftauto.com/wiki/Client_Scripting_Functions#Engine_functions Link to comment
Thimo Posted July 31, 2010 Author Share Posted July 31, 2010 Hey i see how to do it but i cant find my TXD and DFF files anywhere ? Wtf Link to comment
AeroXbird Posted July 31, 2010 Share Posted July 31, 2010 maybe you forgot to add them to you meta Link to comment
Thimo Posted August 1, 2010 Author Share Posted August 1, 2010 Can someone make a example for the infernus??? Pls Does it need to be in game mode script ftw? Link to comment
blas95 Posted August 1, 2010 Share Posted August 1, 2010 There's example on the wiki. Link to comment
Thimo Posted August 1, 2010 Author Share Posted August 1, 2010 Whats wrong with this code: function Replace( ) elgtx = engineLoadTXD ( "txd/buffalo.txd" ) engineImportTXD ( elgtx, 402 ) elgdf = engineLoadDFF ( "txd/buffalo.dff", 402 ) engineReplaceModel ( elgdf, 402 ) end addEventHandler('onClientResourceStart', resourceRoot, replace) addCommandHandler ( "replace", replace ) Meta here <meta> <info author="thimo" type="script" version="1.0"/> <script src="Mod.lua" type="client"/> <file src="txd/buffalo.txd" type="client" /> <file src="txd/buffalo.dff" type="client " /> </meta> Pl stell me what im doing wrong! i tried very much but maybe you guys can find a error in it Link to comment
blas95 Posted August 1, 2010 Share Posted August 1, 2010 You didn't define resourceRoot, use getResourceRootElement() instead. 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