Jump to content

[TUT]Import Textures


xTravax

Recommended Posts

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
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
  • 1 year later...
  • 4 weeks later...
@; 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
  • 3 weeks later...
  • 2 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...