xTravax Posted July 25, 2012 Share Posted July 25, 2012 so here's what ou need to add in lua file --Script by LR function onResourceStart() dfk1 = engineLoadTXD ( "textures/vgncarshade1.txd" ) engineImportTXD ( dfk1, 3458 ) --Road end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) and here's what you need to add in meta.xml <meta> <info type="script" name="New race textures" author="diegofkda" version="1.0.0" /> <script src="script.lua" type="client" /> <file src="TEXTURES/vgncarshade1.txd" /> </meta> In this case lua is called script.lua Hope you understand NOTE! if you want to add more copy it and then change frp, dfk1 to df2 and then just change it however you want and change name BIG NOTE!To script work make folder called TEXTURES in folder where is lua and meta and put file in in this case file is "vgncarshade1.txd" Link to comment
BorderLine Posted July 25, 2012 Share Posted July 25, 2012 i think its a bad idea call the fuction like some event native from MTA Link to comment
Anderl Posted July 25, 2012 Share Posted July 25, 2012 i think its a bad idea call the fuction like some event native from MTA It has nothing to do and also the event was server-side so it has nothing to do with client-side anyway. Link to comment
Callum Posted July 25, 2012 Share Posted July 25, 2012 replace getResourceRootElement(getThisResource()) with resourceRoot Link to comment
BorderLine Posted July 25, 2012 Share Posted July 25, 2012 i think its a bad idea call the fuction like some event native from MTA It has nothing to do and also the event was server-side so it has nothing to do with client-side anyway. i know that, what i mean that can be complicated to guys who are learning lua. can confuse they Link to comment
Noki Posted October 24, 2013 Share Posted October 24, 2013 Ancient topic bump.... Is it possible for TXD to be renamed to DFF and have that replaced? I have no knowledge of scripting, hence my stupid question. Link to comment
Castillo Posted October 24, 2013 Share Posted October 24, 2013 One thing is replacing textures ( TXD ) and another thing is replacing models ( DFF ), there are functions to replace textures and models. Link to comment
ZL|LuCaS Posted November 20, 2013 Share Posted November 20, 2013 @; xTravax, (this is not an affirmation) I think you do not have much knowledge in Lua (programming language) the most interesting is that WHAT YOU KNOW tries encinar those who do not know. thank you. Link to comment
denny199 Posted November 21, 2013 Share Posted November 21, 2013 @; xTravax, (this is not an affirmation) I think you do not have much knowledge in Lua (programming language) the most interesting is that WHAT YOU KNOW tries encinar those who do not know.thank you. Sir, you are insulting someone by saying that he can't script, he's atleast helping scripters who doesn't know anything about importing models & textures. AND look at this post date, 1 year ago. And please, stop using google translate, because "encinar" isn't a english word. Anyways, don't reply on this topic anymore, if you want to say anything to me OR if you are mad at me then consider it via PM, I'd like to see your deeply rage against me. Kindly regards, Danny Link to comment
Snow-Man Posted December 10, 2013 Share Posted December 10, 2013 How can i remplace Clothers ?? Link to comment
Noki Posted December 11, 2013 Share Posted December 11, 2013 How can i remplace Clothers ?? Using the same function, but replacing a different ID. Link to comment
Snow-Man Posted December 11, 2013 Share Posted December 11, 2013 How can i remplace Clothers ?? Using the same function, but replacing a different ID. No, Replacing Clothes mods with Shader Link to comment
DNL291 Posted December 25, 2013 Share Posted December 25, 2013 How can i remplace Clothers ?? Using the same function, but replacing a different ID. No, Replacing Clothes mods with Shader https://wiki.multitheftauto.com/wiki/Cl ... ponent_IDs Link to comment
Snow-Man Posted December 26, 2013 Share Posted December 26, 2013 https://wiki.multitheftauto.com/wiki/Cl ... ponent_IDs thanks Link to comment
Recommended Posts