Como esta seção funciona também inclui showcase e pedidos de resources (como se fosse a categoria global Scripting + a Resources juntas) então também é utilizada para essa finalidade.
Nesse caso, nem se trata de um resource, então seria desnecessário upar como um resource na community.multitheftauto.com. Seria melhor adicionar a função aqui: https://wiki.multitheftauto.com/wiki/Useful_Functions
Mas quanto à sua função @zMpyster tá meio que feita na base da gambiarra e precisa de um código mais "limpo" sem esses loops aí. A propósito, já tem essa função útil na Wiki:
https://wiki.multitheftauto.com/wiki/SecondsToTimeDesc
It's official, MTASA has been bought and we are becoming SAMP. Future MTASA builds will be closed source and half the features removed.
Have a nice day!
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
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
-then click on find
-then type the object id and tick the id then click on find
-after finding the ID DOUBLE CLICK IT
- NOW COPY THE TEXTURE NAME FROM THERE
STEP3- EXPORTING THE TXD FILE WHICH YOU WANT TO REPLACE
-OPEN ALIC'S IMG TOOL AND THEN OPEN GTA.IMG FILE WITH IT
-PASTE THE TEXTURE NAME IN THE SEARCH AND CLICK ENTER
-AFTER YOU FIND YOUR TXD FILE CLICK ON ACTION THEN EXPORT IT WHERE EVER YOU WANT
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
-REPLACE THE EDITED PNG BY DRAGING IT ON THE TXD WS AND THEN SAVE IT
-
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
NOW CERATE A LUA FILE AND TYPE THIS INTO IT
-ADD THIS IN YOUR META FILE
DONE HOPE YOU like my tutorial