The method player.outfit.get()
is used to retrieve the outfit of a player. It requires one parameter: the user ID of the player whose outfit you want to retrieve.
// Assuming you have defined the Highrise instance as "bot".
bot.on("chatCreate", async (user, message) => {
if (message === "outfit") {
bot.player.outfit.get(user.id).then(outfit => {
console.log(`[OUTFIT]: ${user.username}: `, outfit);
}).catch(e => { console.error(e) });
}
});
The output includes an array of clothing items, each containing information such as type, amount, ID, account bound status, and active palette. This information can be used to determine the player's current outfit.
In the provided output, each clothing item includes details such as type, amount, ID, account bound status, and active palette. These details represent different aspects of the player's outfit, including clothing items for the body, hair, eyes, mouth, shirt, pants, shoes, accessories, and more.
[
{
type: 'clothing',
amount: 1,
id: 'body-flesh',
account_bound: false,
active_palette: 26
},
{
type: 'clothing',
amount: 1,
id: 'nose-n_poppianawintercollection2023nose',
account_bound: false,
active_palette: 0
},
{
type: 'clothing',
amount: 1,
id: 'freckle-n_wintergiftudcgrab2022notreallycoldblush',
account_bound: true,
active_palette: 0
},
{
type: 'clothing',
amount: 1,
id: 'eyebrow-n_q3redesignrunwaywednesdaysales2023mockerisquintedstudbrow',
account_bound: false,
active_palette: 80
},
{
type: 'clothing',
amount: 1,
id: 'hair_front-n_pjpartyudcparticrewards2023kiyokikimessymorninghair',
account_bound: false,
active_palette: 79
},
{
type: 'clothing',
amount: 1,
id: 'hair_back-n_randomfallbackgrabthree2023maschair',
account_bound: false,
active_palette: 79
},
{
type: 'clothing',
amount: 1,
id: 'pants-n_gettoworkudcrewards012023tkattkatxstarduztshorts',
account_bound: false,
active_palette: 0
},
{
type: 'clothing',
amount: 1,
id: 'mouth-hccitems2023tomsmouth004',
account_bound: false,
active_palette: 15
},
{
type: 'clothing',
amount: 1,
id: 'eye-n_nynlcrewandmodelrwrds2024mockerishiningheart',
account_bound: false,
active_palette: 47
},
{
type: 'clothing',
amount: 1,
id: 'shirt-n_winterfloralgardengrungegrab2022whitetop',
account_bound: false,
active_palette: 0
},
{
type: 'clothing',
amount: 1,
id: 'sock-n_basic2021opaquetightswhite',
account_bound: false,
active_palette: 0
},
{
type: 'clothing',
amount: 1,
id: 'shoes-n_guyrisescudcgrab22023zykeair02',
account_bound: false,
active_palette: 0
},
{
type: 'clothing',
amount: 1,
id: 'hat-n_pjpartygrabone2023faiimblushylids',
account_bound: false,
active_palette: 0
},
{
type: 'clothing',
amount: 1,
id: 'tattoo-n_accessoriseudcdonategrabone2022basicshirt',
account_bound: false,
active_palette: 0
},
{
type: 'clothing',
amount: 1,
id: 'bag-n_hccbasics2024beltwhite',
account_bound: false,
active_palette: 0
},
{
type: 'clothing',
amount: 1,
id: 'bag-n_hccbasics2024waistsweaterwhite',
account_bound: false,
active_palette: 0
},
{
type: 'clothing',
amount: 1,
id: 'hat-n_blueskieshiphoprewards2021bandana_1',
account_bound: false,
active_palette: 0
},
{
type: 'clothing',
amount: 1,
id: 'handbag-n_hccbasics2024cupwhite',
account_bound: false,
active_palette: 0
},
{
type: 'clothing',
amount: 1,
id: 'earrings-n_techcrewrewards2019airpods',
account_bound: false,
active_palette: 0
}
]
Go Back: Perform Actions On Player