discoveries/peds_customization/wearable_states.lua
Large data table — only a preview is indexed. Full file at https://github.com/femga/rdr3_discoveries/blob/master/peds_customization/wearable_states.lua
Lines: 91163. Preview (first 80 lines):
-- Clothing component wearable states determine which Asset (drawable, albedo, normal, material, palette colours) is applied to the ped.
-- Usually when applying components not present in shop_items.ymt (check the link below for tutorial), visual clipping can be observed.
-- These wearable states can be applied to other component to fix any such clipping.
-- For more info, see https://forum.cfx.re/t/ped-modification-and-metadata-overview-outfits-assets-expressions-shop-items-overlays-etc/5124046
-- Wearable states for 6 categories:
-- male_mp
-- male_sp
-- female_mp
-- female_sp
-- animal_mp
-- animal_sp
-- For use with:
-- PED::_UPDATE_SHOP_ITEM_WEARABLE_STATE(Ped ped, Hash componentHash, Hash wearableState, int p3, BOOL isMp, int p5)
-- PED::_GET_SHOP_ITEM_COMPONENT_AT_INDEX(Ped ped, int index, BOOL resolveSelection, BOOL* outStatusFlag, Hash* outWearableState)
-- PED::_GET_SHOP_ITEM_WEARABLE_STATE_BY_INDEX(Hash componentHash, int wearableStateIndex, BOOL isMpFemale, BOOL p3)
local WEARABLE_STATES <const> = {
male_mp = {
[0x00215112] = {
`BASE`,
},
[0x00748171] = {
`BASE`,
},
[0x010051C7] = {
`BASE`,
`UNDER_BOOTS`,
`UNDER_CHAPS`,
`UNDER_MED_BOOTS`,
`UNDER_SPATS`,
},
[0x0154E80F] = {
0xD7CF9007,
`BASE`,
`UNDER_GAUNTLET`,
`UNDER_SLEEVE`,
},
[0x015BDA7D] = {
`BASE`,
},
[0x0190DD37] = {
`BASE`,
},
[0x019D8A81] = {
`BASE`,
},
[0x01C28D80] = {
`BASE`,
},
[`CLOTHING_M_R4_NECKTIE_239_TINT_016`] = {
`BASE`,
},
[0x03420118] = {
`BASE`,
},
[0x0395F7F3] = {
`BASE`,
`SHORT_PANTS`,
`UNDER_PANTS`,
},
[0x03CC5161] = {
`BASE`,
`DUELWIELD`,
},
[`CLOTHING_ITEM_M_EYEWEAR_402_TINT_005`] = {
`BASE`,
`UNDER_BANDANA`,
},
[0x04AC984D] = {
`BASE`,
`BASE_COAT_OPEN`,
},
[0x04F54118] = {
`BASE`,
},
[0x0544CC07] = {
`BASE`,