Clothing Component IDs: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Fernando187 (talk | contribs) m (fix engineLoadDFF in example) |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{New feature/item| | =Replacing models (DFF)= | ||
}} | {{New feature/item|3.0161|1.6.0|22987|'''[NEW]''' Since [https://github.com/multitheftauto/mtasa-blue/pull/3967 this feature] was added, you can now replace the CJ clothing models (previously you could only replace the textures) using the [[engineLoadDFF]] and [[engineReplaceModel]] functions.}} | ||
The clothing models should be made in the same way as in the original game, with 3 clumps, ripped, normal and fat. | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
txd = engineLoadTXD("myafro.txd") | -- Load your custom .dff file that will | ||
-- replace one of the game's DFFs for CJ clothing | |||
local dff = engineLoadDFF("custom_afrobeard.dff") | |||
engineReplaceModel(dff, 30001) | |||
</syntaxhighlight> | |||
==Original models== | |||
Get the original models from the GTA file '''models\player.img''' | |||
==Model IDs and Names== | |||
Full list of model IDs that are associated with CJ clothing models. | |||
<syntaxhighlight lang="lua"> | |||
afro.dff -> 30000 | |||
afrobeard.dff -> 30001 | |||
afrotash.dff -> 30002 | |||
balaclava.dff -> 30003 | |||
bandana.dff -> 30004 | |||
bandknots.dff -> 30005 | |||
bandmask.dff -> 30006 | |||
barefeet.dff -> 30007 | |||
baseball.dff -> 30008 | |||
bask1.dff -> 30009 | |||
baskball.dff -> 30010 | |||
bbjack.dff -> 30011 | |||
beret.dff -> 30012 | |||
biker.dff -> 30013 | |||
bikerhelmet.dff -> 30014 | |||
boater.dff -> 30015 | |||
bowler.dff -> 30016 | |||
boxingcap.dff -> 30017 | |||
boxingshoe.dff -> 30018 | |||
boxingshort.dff -> 30019 | |||
cap.dff -> 30020 | |||
capandband.dff -> 30021 | |||
capback.dff -> 30022 | |||
capknit.dff -> 30023 | |||
capover.dff -> 30024 | |||
capovereye.dff -> 30025 | |||
cappolice.dff -> 30026 | |||
caprimup.dff -> 30027 | |||
capside.dff -> 30028 | |||
captruck.dff -> 30029 | |||
chinos.dff -> 30030 | |||
chinosb.dff -> 30031 | |||
chonger.dff -> 30032 | |||
chucks.dff -> 30033 | |||
coach.dff -> 30034 | |||
conv.dff -> 30035 | |||
cornrows.dff -> 30036 | |||
country.dff -> 30037 | |||
countrytr.dff -> 30038 | |||
cowboy.dff -> 30039 | |||
cs_afro.dff -> 30040 | |||
cs_afrobeard.dff -> 30041 | |||
cs_afrotash.dff -> 30042 | |||
cs_bandana.dff -> 30043 | |||
cs_bandknots.dff -> 30044 | |||
cs_bandmask.dff -> 30045 | |||
cs_bikerhelmet.dff -> 30046 | |||
cs_cornrows.dff -> 30047 | |||
cs_elvishair.dff -> 30048 | |||
cs_flatears.dff -> 30049 | |||
cs_flattop.dff -> 30050 | |||
cs_gimpmask.dff -> 30051 | |||
cs_groovecut.dff -> 30052 | |||
cs_hands.dff -> 30053 | |||
cs_head.dff -> 30054 | |||
cs_highafro.dff -> 30055 | |||
cs_jheri.dff -> 30056 | |||
cs_mohawk.dff -> 30057 | |||
cs_slope.dff -> 30058 | |||
cs_tramline.dff -> 30059 | |||
cs_wedge.dff -> 30060 | |||
cs_zorro.dff -> 30061 | |||
denim.dff -> 30062 | |||
elvishair.dff -> 30063 | |||
eyepatch.dff -> 30064 | |||
feet.dff -> 30065 | |||
field.dff -> 30066 | |||
flatears.dff -> 30067 | |||
flattop.dff -> 30068 | |||
flipflop.dff -> 30069 | |||
garagetop.dff -> 30070 | |||
garagetr.dff -> 30071 | |||
gimpfeet.dff -> 30072 | |||
gimphands.dff -> 30073 | |||
gimpleg.dff -> 30074 | |||
gimpmask.dff -> 30075 | |||
gimptorso.dff -> 30076 | |||
glasses01.dff -> 30077 | |||
glasses03.dff -> 30078 | |||
glasses04.dff -> 30079 | |||
glassesx.dff -> 30080 | |||
groovecut.dff -> 30081 | |||
grouchos.dff -> 30082 | |||
hands.dff -> 30083 | |||
hatmanc.dff -> 30084 | |||
hattiger.dff -> 30085 | |||
hawaii.dff -> 30086 | |||
head.dff -> 30087 | |||
helmet.dff -> 30088 | |||
highafro.dff -> 30089 | |||
hitop.dff -> 30090 | |||
hockeymask.dff -> 30091 | |||
hoodjack.dff -> 30092 | |||
hoodya.dff -> 30093 | |||
hoodyb.dff -> 30094 | |||
jeans.dff -> 30095 | |||
jheri.dff -> 30096 | |||
leather.dff -> 30097 | |||
leathertr.dff -> 30098 | |||
legs.dff -> 30099 | |||
legspants.dff -> 30100 | |||
medictr.dff -> 30101 | |||
mohawk.dff -> 30102 | |||
moto.dff -> 30103 | |||
neck.dff -> 30104 | |||
neck2.dff -> 30105 | |||
neck2_bb.dff -> 30106 | |||
neck2_field.dff -> 30107 | |||
neck2_hoodya.dff -> 30108 | |||
neck2_pimp.dff -> 30109 | |||
neck2_shirt.dff -> 30110 | |||
neck_bb.dff -> 30111 | |||
neck_field.dff -> 30112 | |||
neck_hoodya.dff -> 30113 | |||
neck_pimp.dff -> 30114 | |||
neck_shirt.dff -> 30115 | |||
neck_tracky.dff -> 30116 | |||
painter.dff -> 30117 | |||
pimp.dff -> 30118 | |||
pimpshoe.dff -> 30119 | |||
pimptr.dff -> 30120 | |||
policeshirt.dff -> 30121 | |||
policetr.dff -> 30122 | |||
shirta.dff -> 30123 | |||
shirtb.dff -> 30124 | |||
shoe.dff -> 30125 | |||
shorts.dff -> 30126 | |||
skullycap.dff -> 30127 | |||
sleevt.dff -> 30128 | |||
slope.dff -> 30129 | |||
sneaker.dff -> 30130 | |||
suit1.dff -> 30131 | |||
suit1tr.dff -> 30132 | |||
suit2.dff -> 30133 | |||
sweat.dff -> 30134 | |||
timber.dff -> 30135 | |||
torso.dff -> 30136 | |||
tracktr.dff -> 30137 | |||
trackytop1.dff -> 30138 | |||
tramline.dff -> 30139 | |||
trilby.dff -> 30140 | |||
tshirt.dff -> 30141 | |||
tshirt2.dff -> 30142 | |||
valet.dff -> 30143 | |||
vest.dff -> 30144 | |||
watch.dff -> 30145 | |||
watch_hoody.dff -> 30146 | |||
wcoat.dff -> 30147 | |||
wedge.dff -> 30148 | |||
worktr.dff -> 30149 | |||
worktrboot.dff -> 30150 | |||
zorromask.dff -> 30151 | |||
</syntaxhighlight> | |||
=Replacing textures (TXD)= | |||
Functions [[engineLoadTXD]] and [[engineImportTXD]] can be used to replace CJ clothing texture components like this: | |||
<syntaxhighlight lang="lua"> | |||
local txd = engineLoadTXD("myafro.txd") | |||
engineImportTXD( txd, 30201 ) | engineImportTXD( txd, 30201 ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Names can be used instead of IDs | Names can be used instead of IDs, and this does exactly the same thing as above: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
txd = engineLoadTXD("myafro.txd") | txd = engineLoadTXD("myafro.txd") | ||
Line 15: | Line 185: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=Original textures= | ==Original textures== | ||
Get the original textures from the GTA file '''models\player.img''' | Get the original textures from the GTA file '''models\player.img''' | ||
= | ==Texture IDs and Names== | ||
Full list of clothing texture | Full list of clothing component texture IDs and names:<br/> | ||
(The texture names are also the same as those listed in the [[CJ Clothes|clothes catalog]]) | |||
{| style='text-align:center; margin: 1em auto 1em auto;' | {| style='text-align:center; margin: 1em auto 1em auto;' | ||
Line 844: | Line 1,015: | ||
|} | |} | ||
|} | |} | ||
=Code reference= | |||
mtasa-blue: https://github.com/multitheftauto/mtasa-blue/blob/master/Client/mods/deathmatch/logic/CModelNames.h#L11 | |||
[[Category:ID_Lists]] |
Latest revision as of 23:50, 4 March 2025
Replacing models (DFF)
The clothing models should be made in the same way as in the original game, with 3 clumps, ripped, normal and fat.
-- Load your custom .dff file that will -- replace one of the game's DFFs for CJ clothing local dff = engineLoadDFF("custom_afrobeard.dff") engineReplaceModel(dff, 30001)
Original models
Get the original models from the GTA file models\player.img
Model IDs and Names
Full list of model IDs that are associated with CJ clothing models.
afro.dff -> 30000 afrobeard.dff -> 30001 afrotash.dff -> 30002 balaclava.dff -> 30003 bandana.dff -> 30004 bandknots.dff -> 30005 bandmask.dff -> 30006 barefeet.dff -> 30007 baseball.dff -> 30008 bask1.dff -> 30009 baskball.dff -> 30010 bbjack.dff -> 30011 beret.dff -> 30012 biker.dff -> 30013 bikerhelmet.dff -> 30014 boater.dff -> 30015 bowler.dff -> 30016 boxingcap.dff -> 30017 boxingshoe.dff -> 30018 boxingshort.dff -> 30019 cap.dff -> 30020 capandband.dff -> 30021 capback.dff -> 30022 capknit.dff -> 30023 capover.dff -> 30024 capovereye.dff -> 30025 cappolice.dff -> 30026 caprimup.dff -> 30027 capside.dff -> 30028 captruck.dff -> 30029 chinos.dff -> 30030 chinosb.dff -> 30031 chonger.dff -> 30032 chucks.dff -> 30033 coach.dff -> 30034 conv.dff -> 30035 cornrows.dff -> 30036 country.dff -> 30037 countrytr.dff -> 30038 cowboy.dff -> 30039 cs_afro.dff -> 30040 cs_afrobeard.dff -> 30041 cs_afrotash.dff -> 30042 cs_bandana.dff -> 30043 cs_bandknots.dff -> 30044 cs_bandmask.dff -> 30045 cs_bikerhelmet.dff -> 30046 cs_cornrows.dff -> 30047 cs_elvishair.dff -> 30048 cs_flatears.dff -> 30049 cs_flattop.dff -> 30050 cs_gimpmask.dff -> 30051 cs_groovecut.dff -> 30052 cs_hands.dff -> 30053 cs_head.dff -> 30054 cs_highafro.dff -> 30055 cs_jheri.dff -> 30056 cs_mohawk.dff -> 30057 cs_slope.dff -> 30058 cs_tramline.dff -> 30059 cs_wedge.dff -> 30060 cs_zorro.dff -> 30061 denim.dff -> 30062 elvishair.dff -> 30063 eyepatch.dff -> 30064 feet.dff -> 30065 field.dff -> 30066 flatears.dff -> 30067 flattop.dff -> 30068 flipflop.dff -> 30069 garagetop.dff -> 30070 garagetr.dff -> 30071 gimpfeet.dff -> 30072 gimphands.dff -> 30073 gimpleg.dff -> 30074 gimpmask.dff -> 30075 gimptorso.dff -> 30076 glasses01.dff -> 30077 glasses03.dff -> 30078 glasses04.dff -> 30079 glassesx.dff -> 30080 groovecut.dff -> 30081 grouchos.dff -> 30082 hands.dff -> 30083 hatmanc.dff -> 30084 hattiger.dff -> 30085 hawaii.dff -> 30086 head.dff -> 30087 helmet.dff -> 30088 highafro.dff -> 30089 hitop.dff -> 30090 hockeymask.dff -> 30091 hoodjack.dff -> 30092 hoodya.dff -> 30093 hoodyb.dff -> 30094 jeans.dff -> 30095 jheri.dff -> 30096 leather.dff -> 30097 leathertr.dff -> 30098 legs.dff -> 30099 legspants.dff -> 30100 medictr.dff -> 30101 mohawk.dff -> 30102 moto.dff -> 30103 neck.dff -> 30104 neck2.dff -> 30105 neck2_bb.dff -> 30106 neck2_field.dff -> 30107 neck2_hoodya.dff -> 30108 neck2_pimp.dff -> 30109 neck2_shirt.dff -> 30110 neck_bb.dff -> 30111 neck_field.dff -> 30112 neck_hoodya.dff -> 30113 neck_pimp.dff -> 30114 neck_shirt.dff -> 30115 neck_tracky.dff -> 30116 painter.dff -> 30117 pimp.dff -> 30118 pimpshoe.dff -> 30119 pimptr.dff -> 30120 policeshirt.dff -> 30121 policetr.dff -> 30122 shirta.dff -> 30123 shirtb.dff -> 30124 shoe.dff -> 30125 shorts.dff -> 30126 skullycap.dff -> 30127 sleevt.dff -> 30128 slope.dff -> 30129 sneaker.dff -> 30130 suit1.dff -> 30131 suit1tr.dff -> 30132 suit2.dff -> 30133 sweat.dff -> 30134 timber.dff -> 30135 torso.dff -> 30136 tracktr.dff -> 30137 trackytop1.dff -> 30138 tramline.dff -> 30139 trilby.dff -> 30140 tshirt.dff -> 30141 tshirt2.dff -> 30142 valet.dff -> 30143 vest.dff -> 30144 watch.dff -> 30145 watch_hoody.dff -> 30146 wcoat.dff -> 30147 wedge.dff -> 30148 worktr.dff -> 30149 worktrboot.dff -> 30150 zorromask.dff -> 30151
Replacing textures (TXD)
Functions engineLoadTXD and engineImportTXD can be used to replace CJ clothing texture components like this:
local txd = engineLoadTXD("myafro.txd") engineImportTXD( txd, 30201 )
Names can be used instead of IDs, and this does exactly the same thing as above:
txd = engineLoadTXD("myafro.txd") engineImportTXD( txd, "afro" )
Original textures
Get the original textures from the GTA file models\player.img
Texture IDs and Names
Full list of clothing component texture IDs and names:
(The texture names are also the same as those listed in the clothes catalog)
|
|
|
|
|
|
Code reference
mtasa-blue: https://github.com/multitheftauto/mtasa-blue/blob/master/Client/mods/deathmatch/logic/CModelNames.h#L11