Skip to main content

useAddClothes

Adds clothes to the clothes system.

Heads Up!

This hook do not add the clothes to the player, it only adds it to the clothes system. To add the clothes to the player, use player.addClothes.

Syntax​

useAddClothes(clothes);

Parameters​

NameTypeDescription
clothesClotheItem[]The clothes to add to the engine.

Example​

useAddClothe([
{
id: 'beach-tshirt',
url: 'https://example.com/beach-tshirt.glb',
name: 'Beach T-Shirt',
masks: ['top'],
},
]);

Available on: Client