
πOutfits
You can easily add custom outfits by defining the item name and relevant information required in Config.Outfits
You can set restrictions for outfits the same as you can with shops through job or gang restrictions
Outfit Name
The
key
is the item name and must be in your items.lua
['my_custom_outfit1'] = { -- the key is the useable item name that applies the outfit define below
--
},
Progress Circle
Each outfit has its own progress circle data
Duration is the length of time to use the item
Label is the progress circle label
Define animation settings
Dict is the animation dictionary name
Clip is the animation name
Flag is the animation flag
['my_custom_outfit1'] = { -- the key is the useable item name that applies the outfit define below
progress = { -- define progressCircle settings
duration = 5000, -- duration
label = 'Changing outfit', -- label
anim = { -- animation settings
dict = 'clothingshirt', -- anim dict
clip = 'try_shirt_positive_d', -- anim name
flag = 41, -- anim flag
},
},
--
},
Access Restrictions
If required define restrictions through job or gangs for each outfit
Set enabled to true to use the restriction and then define that job or gang name
Ensure the job or gang exists in your jobs.lua or gangs.lua files
['my_custom_outfit1'] = { -- the key is the useable item name that applies the outfit define below
--
access = { -- define outfit access
job = { -- job access
enabled = false, -- enable a job to wear this outfit
name = { 'my_custom_job', }, -- job name
minGrade = 0, -- minimum grade required to wear outfit
},
gang = { -- gang access
enabled = false, -- eanble a gang to wear this outfit
name = { 'my_custom_gang', }, -- gang name
minGrade = 0, -- minimum grade required to wear outfit
},
},
--
},
Outfit Data
Define outfit data for male and female clothing
If using custom clothing ensure the slots and textures defined match that of your clothing menu
['my_custom_outfit1'] = { -- the key is the useable item name that applies the outfit define below
--
outfit = { -- define outfit data for males and females
['male'] = { -- male outfit data
outfitData ={ -- define clothing parts, their slot numbers and respective texture slot number if applicable - SET TO 0 FOR NO ITEM
['t-shirt'] = {item = 58, texture = 0},
['torso2'] = {item = 55, texture = 0},
['arms'] = {item = 30, texture = 0},
['pants'] = {item = 10, texture = 0},
['shoes'] = {item = 25, texture = 0},
['mask'] = {item = 0, texture = 0},
['decals'] = {item = 0, texture = 0},
['accessory'] = {item = 0, texture = 0},
['bag'] = {item = 0, texture = 0},
['hat'] = {item = 46, texture = 0},
['glass'] = {item = 5, texture = 4},
['ear'] = {item = 1, texture = 0},
['vest'] = {item = 54, texture = 0},
}
},
['female'] = { -- female outfit data
outfitData ={-- define clothing parts, their slot numbers and respective texture slot number if applicable - SET TO 0 FOR NO ITEM
['t-shirt'] = {item = 15, texture = 0},
['torso2'] = {item = 251, texture = 4},
['arms'] = {item = 18, texture = 0},
['pants'] = {item = 97, texture = 4},
['shoes'] = {item = 70, texture = 4},
['mask'] = {item = 122, texture = 0},
['decals'] = {item = 0, texture = 0},
['accessory'] = {item = 0, texture = 0},
['bag'] = {item = 0, texture = 0},
['hat'] = {item = 0, texture = 0},
['glass'] = {item = 0, texture = 0},
['ear'] = {item = 0, texture = 0},
['vest'] = {item = 0, texture = 0},
}
},
},
},
Finished Config
Below is what a finished config should look like for a custom outfit item with no job or gang restrictions
['my_custom_outfit1'] = { -- the key is the useable item name that applies the outfit define below
progress = { -- define progressCircle settings
duration = 5000, -- duration
label = 'Changing outfit', -- label
anim = { -- animation settings
dict = 'clothingshirt', -- anim dict
clip = 'try_shirt_positive_d', -- anim name
flag = 41, -- anim flag
},
},
access = { -- define outfit access
job = { -- job access
enabled = false, -- enable a job to wear this outfit
name = { 'my_custom_job', }, -- job name
minGrade = 0, -- minimum grade required to wear outfit
},
gang = { -- gang access
enabled = false, -- eanble a gang to wear this outfit
name = { 'my_custom_gang', }, -- gang name
minGrade = 0, -- minimum grade required to wear outfit
},
},
outfit = { -- define outfit data for males and females
['male'] = { -- male outfit data
outfitData ={ -- define clothing parts, their slot numbers and respective texture slot number if applicable - SET TO 0 FOR NO ITEM
['t-shirt'] = {item = 58, texture = 0},
['torso2'] = {item = 55, texture = 0},
['arms'] = {item = 30, texture = 0},
['pants'] = {item = 10, texture = 0},
['shoes'] = {item = 25, texture = 0},
['mask'] = {item = 0, texture = 0},
['decals'] = {item = 0, texture = 0},
['accessory'] = {item = 0, texture = 0},
['bag'] = {item = 0, texture = 0},
['hat'] = {item = 46, texture = 0},
['glass'] = {item = 5, texture = 4},
['ear'] = {item = 1, texture = 0},
['vest'] = {item = 54, texture = 0},
}
},
['female'] = { -- female outfit data
outfitData ={-- define clothing parts, their slot numbers and respective texture slot number if applicable - SET TO 0 FOR NO ITEM
['t-shirt'] = {item = 15, texture = 0},
['torso2'] = {item = 251, texture = 4},
['arms'] = {item = 18, texture = 0},
['pants'] = {item = 97, texture = 4},
['shoes'] = {item = 70, texture = 4},
['mask'] = {item = 122, texture = 0},
['decals'] = {item = 0, texture = 0},
['accessory'] = {item = 0, texture = 0},
['bag'] = {item = 0, texture = 0},
['hat'] = {item = 0, texture = 0},
['glass'] = {item = 0, texture = 0},
['ear'] = {item = 0, texture = 0},
['vest'] = {item = 0, texture = 0},
}
},
},
},
Last updated