xTravax Posted July 25, 2012 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"
BorderLine Posted July 25, 2012 Posted July 25, 2012 i think its a bad idea call the fuction like some event native from MTA Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
Anderl Posted July 25, 2012 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. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
Callum Posted July 25, 2012 Posted July 25, 2012 replace getResourceRootElement(getThisResource()) with resourceRoot Retired
BorderLine Posted July 25, 2012 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 Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
Noki Posted October 24, 2013 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.
Castillo Posted October 24, 2013 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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
ZL|LuCaS Posted November 20, 2013 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. MTA Scripters. ♥♥♥Beijinhos♥♥♥
denny199 Posted November 21, 2013 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 Sometimes I dream about cheese
Snow-Man Posted December 10, 2013 Posted December 10, 2013 How can i remplace Clothers ?? USC Informations Head Staff & Owner Of USC. Youtube Channel : My Channel
Noki Posted December 11, 2013 Posted December 11, 2013 How can i remplace Clothers ?? Using the same function, but replacing a different ID.
Snow-Man Posted December 11, 2013 Posted December 11, 2013 How can i remplace Clothers ?? Using the same function, but replacing a different ID. No, Replacing Clothes mods with Shader USC Informations Head Staff & Owner Of USC. Youtube Channel : My Channel
DNL291 Posted December 25, 2013 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 Please do not PM me with scripting related question nor support, use the forums instead.
Snow-Man Posted December 26, 2013 Posted December 26, 2013 https://wiki.multitheftauto.com/wiki/Cl ... ponent_IDs thanks USC Informations Head Staff & Owner Of USC. Youtube Channel : My Channel
Recommended Posts