Thimo Posted July 31, 2010 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!
blas95 Posted July 31, 2010 Posted July 31, 2010 https://wiki.multitheftauto.com/wiki/Client_Scripting_Functions#Engine_functions
Thimo Posted July 31, 2010 Author Posted July 31, 2010 Hey i see how to do it but i cant find my TXD and DFF files anywhere ? Wtf
Thimo Posted August 1, 2010 Author Posted August 1, 2010 Can someone make a example for the infernus??? Pls Does it need to be in game mode script ftw?
Thimo Posted August 1, 2010 Author 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
blas95 Posted August 1, 2010 Posted August 1, 2010 You didn't define resourceRoot, use getResourceRootElement() instead.
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