Player::setClothes
This function set clothing for player. Alternative of client-side function: [Player::setComponentVariation](https://wiki.rage.mp/index.php?title=Player::setComponentVariation)
<table> <thead> <tr> <th colspan="4"><p>Clothes</p></th> </tr> </thead> <tbody> <tr> <td><p>Component ID</p></td> <td><p>Part</p></td> <td colspan="2"><p>Gender</p></td> </tr> <tr> <td style="text-align:center"><p>0</p></td> <td><p>Head</p></td> <td colspan="2"></td> </tr> <tr> <td style="text-align:center"><p>1</p></td> <td><p>Masks</p></td> <td colspan="2"><p>Male + Female</p></td> </tr> <tr> <td style="text-align:center"><p>2</p></td> <td><p>Hair Styles</p></td> <td><p>Male</p></td> <td><p>| Female</p></td> </tr> <tr> <td style="text-align:center"><p>3</p></td> <td><p>Torsos</p></td> <td><p>Male</p></td> <td><p>Female</p></td> </tr> <tr> <td style="text-align:center"><p>4</p></td> <td><p>Legs</p></td> <td><p>Male</p></td> <td><p>Female</p></td> </tr> <tr> <td style="text-align:center"><p>5</p></td> <td><p>| Bags and Parachutes</p></td> <td colspan="2"><p>Male + Female</p></td> </tr> <tr> <td style="text-align:center"><p>6</p></td> <td><p>Shoes</p></td> <td><p>Male</p></td> <td><p>Female</p></td> </tr> <tr> <td style="text-align:center"><p>7</p></td> <td><p>Accessories</p></td> <td><p>Male</p></td> <td><p>Female</p></td> </tr> <tr> <td style="text-align:center"><p>8</p></td> <td><p>Undershirts</p></td> <td><p>Male</p></td> <td><p>Female</p></td> </tr> <tr> <td style="text-align:center"><p>9</p></td> <td><p>Body Armors</p></td> <td><p>Male</p></td> <td><p>Female</p></td> </tr> <tr> <td style="text-align:center"><p>10</p></td> <td><p>Decals</p></td> <td><p>Male</p></td> <td><p>Female</p></td> </tr> <tr> <td style="text-align:center"><p>11</p></td> <td><p>Tops</p></td> <td><p>Male</p></td> <td><p>Female</p></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> </tr> </tbody> </table>
Known issues
- This function can't handle drawable over 255. If you need, use player.data & entityDataChange + entityStreamIn events so you can set it client-side with [setComponentVariation](https://wiki.rage.mp/index.php?title=Player::setComponentVariation). Fixed in 1.0+.
Syntax
``` player.setClothes(Number componentNumber, Number drawable, Number texture, Number palette) ```
Example
This example changes clothes.