Replacing SKins

All Lua scripting topics related to Multi Theft Auto.

Moderators: Scripting Moderators, Moderators, MTA Team

Replacing SKins

Postby Daniel. on Tue Jul 03, 2012 2:33 pm

Alright so I'm currently wondering how I could replace a skin using a Lua Script replacing something in th eGTA3.IMG with the Skin psycho.txd and physho.dff Could Someone give a example Lua Script?
Daniel.
Snitch
 
Posts: 50
Joined: Wed Jun 13, 2012 5:06 pm

Re: Replacing SKins

Postby TAPL on Tue Jul 03, 2012 2:35 pm

Image
User avatar
TAPL
Arabic Section Moderator
 
Posts: 5885
Joined: Tue Jul 20, 2010 1:37 am
Location: Bahrain
Gang: [Victory]

Re: Replacing SKins

Postby Daniel. on Tue Jul 03, 2012 2:41 pm

Can it work like this

jerrytxd = engineLoadTXD("skins/jerry.txd")
engineImportTXD(jerrytxd, physco)

but the physco.txd not sure where to find the model ID
Daniel.
Snitch
 
Posts: 50
Joined: Wed Jun 13, 2012 5:06 pm

Re: Replacing SKins

Postby smacky on Wed Jul 04, 2012 12:27 am

Daniel. wrote:Can it work like this

jerrytxd = engineLoadTXD("skins/jerry.txd")
engineImportTXD(jerrytxd, physco)

but the physco.txd not sure where to find the model ID

Model? If you mean Skin ID, you must choose it by your own. And don't forget to place skin name in META.XML like this.
  1. <file src="skins/jerry.txd" />


At last it will be something like this
  1. local jerrytxd = engineLoadTXD ( "skins/jerry.txd" )
  2. engineImportTXD ( jerrytxd, SKIN ID )

If you want replace DFF too use this format:
  1. local jerrydff = engineLoadDFF ( "skins/jerrydff.dff", SKIN ID )
  2. engineReplaceModel ( jerrydff, SKIN ID )

And don't forget to add this file src into META.XML!!
  1. I'm beginner and I need little help guys, THX.
  2.  
smacky
Civilian
 
Posts: 21
Joined: Sat Jun 30, 2012 7:13 pm
Gang: Grove

Re: Replacing SKins

Postby Hoka1234 on Wed Jul 04, 2012 9:39 am

if u want the ped For ur server in MTA
Use ModLoader
viewtopic.php?f=108&t=36481
copy the zip to (C:\Program Files (x86)\MTA San Andreas 1.3\server\mods\deathmatch\resources\)
un zip the mod , change the folder name to ModLoader2
then open the folder , put the skin u want in (Skins) folder (dff + txd) then back to server >> open it then type start Modloader2
after that open MTA SA and ur server then choose that skin u changed it (id) :)
Have Fun.
------------------------------
with modloader you can put:
cars , weapons , skins
with just put (TXD and DFF) into (cars) , (weapons) , (skins)
========================================
Put if u want change the skin in GTA.
Download IMG Tool 2.0
http://www.gtagarage.com/mods/download.php?f=90
then open GTA SA Folder >>> Models >>> player.img
get ur skin name like (cj_2.txd) (cj_2.dff)
First find the names by using (ctrl + f) in IMG Tool 2.0
then delete both ...
after it press CTRL + A
or file >> Add
then get ur (cj_2.txd) the new skin u want put it.
and then put it
then press file >>> add >> (cj_2.dff) the new skin u want put it (the dff one).
so u put cj_2.txd and dff
then rebuilt the archeive
then close the img tool
open the game and have fun :D
sorry for long explain but i like to explain all things cuz u maybe want to put it in MTA SA Server or u want in gta sa :D
Both help u and help new ppl in gta and mta :D
Small help from me :D
Regards
_____________
Hoka123
Hoka1234
Rat
 
Posts: 33
Joined: Sun Jul 01, 2012 12:00 pm
Gang: Armed forces GoOdZ,


Return to Scripting

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], Google [Bot], iam2noob4u and 13 guests