Jump to content

[HELP]question textture


kino

Recommended Posts

I do not know where in what subject

I imported the texture of samp.img

14.08.2012  18:42             6 144 BlueNeonTube1.dff 
14.08.2012  18:42             6 144 GreenNeonTube1.dff 
14.08.2012  18:42             6 144 PinkNeonTube1.dff 
14.08.2012  18:42             6 144 RedNeonTube1.dff 
14.08.2012  18:42             6 144 WhiteNeonTube1.dff 
14.08.2012  18:42             6 144 YellowNeonTube1.dff 
  

but I do not know the name txd

Link to comment

Hi Kino,

You can use the IMG Tool @gtagarage.com to extract the .dff's from the gta3.img inside the models folder in the GTA SA root folder.

Then you can use TXD Workshop to read out the .dff file from the file tab. This will give you the ''texture names'' but not the txd file. But you can easily make one yourself with file > new > then import the texture and give it the same name as the one you read from the .dff file (This is CaSe SenSitiVe). Save it as yourtexture.txd and make a script using the engineLoadTXD and engineImportTXD commands.

Here's a working example:

addEventHandler('onClientResourceStart', resourceRoot, 
function()  
        txd = engineLoadTXD ( "yourtexture.txd" ) 
        engineImportTXD ( txd, id) -- Replace id with the object id number. (It will only work if the object is using the same texture name as the one in your .txd) 
end  
) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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