Ben's a twat.
WHO THE HELL TYPES QUESTIONS IN GOOGLE?!
I'll walk you through it. It's simple as pie.
You'll need three main tools, an IMG archive editor, a TXD archive editor, and an image editing program such as GIMP or Photoshop.
You can use various ones, but I strongly recommend
IMG Tool 2.0 and
TXD Workshop.
Once you have installed those, you must locate your GTA
![:S :S](https://forum.sa-mp.nl/images/smilies/got/huh.gif)
A directory.
This is usually:
Code:
<hard disk>://Program Files/Rockstar Games/GTA San Andreas
I will refer to this directory as "root".
Next, you'll want to find a file called:
This will usually be found in root/models.
If it's not, you're either a pirate (yarr) or mentally insane. Or a mentally insane pirate. That would be sweet.
Once you have located this file, open it with IMG Tool 2.0.
Soon, you will probably see a box occupied by a list of .txd, .dff, and .ifp files.
The prefix TXD is used for texture archives. They're the only files we're interested in right now.
Each .txd file contains all the textures and materials for a particular object.
For example, ak47.txd contains the gun's skin, muzzle flash, and weapon icon.
Press F3 (shortcut to "find") and type in the name of the texture you are looking for.
Vehicles will have their name (monster, majestic, bf400) as the texture file.
Once you have located this, right click the .txd file and choose "export". Place it in a temporary directory, we will be working from here.
Now you should have a TXD file. Open this file with TXD Workshop, and you should see the textures of the object appear in the list in the middle of the program.
You can preview what you want to edit based on the name of the texture, and a preview of its contents on the right. When you have selected the one you want to edit, highlight it, then click "Export" at the top of the program. If you are given a pop-up menu, select "Export as PNG". Save it near the .txd you pulled from gta3.img.
Now, edit the PNG file. I'll cover transparency later -- it's a bit difficult, and you shouldn't worry about it for now.
When you are done, re-open the extracted .txd, and select the old picture. Click "Import" at the top of the program, and find your edited image. When you're done, you should see the .txd file refresh.
Instead of the old picture, your new edited picture should appear in the materials list.
You're almost done. Click "Save TXD" at the top of the program (I cannot count how many times I have forgotten this step
![:X :X](https://forum.sa-mp.nl/images/smilies/got/shutup.gif)
). You should re-open the saved .txd to make sure your picture saved correctly in it.
Open IMG Tool 2.0. Open gta3.img again, and find the .txd file you originally extracted.
Right click on the file, and choose "Replace".
Damn. That hurt to type up.
Probably should have made a thread instead or something.