Jump to content

[TuT] Replacing textures for objects.


Recommended Posts

tools needed to replace a texture

MEd (http://www.gtagarage.com/mods/show.php?id=1053)

Alci image tools

TXDWORKSHOP

LET'S GET STARTED

STEP 1 : finding the id of the object which you want to edit/replace

to find the object id open map editor and then objects their id will be written on the right side

w1tzgCG.png

step 2 : finding the texture name

to find texture name you need med tool, after downloading med tool follow the step which i do in these pics

-open MED TOOL, then LOCATE YOUR gta sa location and click ok

ajVmszZ.png

-then click on find

Zv4LA3i.png

-then type the object id and tick the id then click on find

aaoR1cg.png

-after finding the ID DOUBLE CLICK IT

GdfMsHz.png

- NOW COPY THE TEXTURE NAME FROM THERE

dV6R2ll.png

STEP3- EXPORTING THE TXD FILE WHICH YOU WANT TO REPLACE

-OPEN ALIC'S IMG TOOL AND THEN OPEN GTA.IMG FILE WITH IT

SbWmVM9.png

-PASTE THE TEXTURE NAME IN THE SEARCH AND CLICK ENTER

0UrkDgQ.png

-AFTER YOU FIND YOUR TXD FILE CLICK ON ACTION THEN EXPORT IT WHERE EVER YOU WANT

6rYFsJy.png

STEP4 - EDITING THE TEXTURE

-OPEN TXD WORKSHOP AND OPEN YOUR TXD WHICH YOU EXPORTED WITH ALIC'S IMG TOOL

THEN EXPORT THE TEXTURES IN PNG FORMAT AND EDIT IT WITH ANY IMG EDITOR TOOL

NGg83my.png

-REPLACE THE EDITED PNG BY DRAGING IT ON THE TXD WS AND THEN SAVE IT

N3Sy4xQ.png

-

STEP5- CREATING LUA FILE AND EDITING META FILE

-CREATE A FOLDER IN YOUR MAP FOLDER WITH TEXTURE NAME OR ANY OTHER NAME YOU WANT

AND COPY THE EDITED TXD FILE INTO IT

rhJG47k.png

NOW CERATE A LUA FILE AND TYPE THIS INTO IT

42rleKO.png

function replaceTXD()

txd = engineLoadTXD("texture/YOURTXDFILENAME.txd") ------ WRITE THE FILE NAME OF YOUR TXD

engineImportTXD(txd, THEOBJECT ID) ---- WRITE THE OBJECT ID

end

addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceTXD)

-ADD THIS IN YOUR META FILE

ahSzIEa.png

DONE :) HOPE YOU like my tutorial

  • Like 2
  • Thanks 1
Link to comment
  • 1 year later...
  • 10 months later...
  • 2 months later...
  • 1 year later...
  • Recently Browsing   0 members

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