Player::setComponentVariation

From RAGE Multiplayer Wiki
Clothes
Component ID Part Gender
0 Head
1 Masks Male + Female
2 Hair Styles Male Female
3 Torsos Male Female
4 Legs Male Female
5 Bags and Parachutes Male + Female
6 Shoes Male Female
7 Accessories Male Female
8 Undershirts Male Female
9 Body Armors Male Female
10 Decals Male Female
11 Tops Male Female

List of component/props ID: http://gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
See player clothes: https://wiki.rage.mp/index.php?title=Clothes
paletteId/palletColor - 0 to 3: https://wiki.rage.mp/index.php?title=Player::getPaletteVariation .

Syntax

player.setComponentVariation(componentId, drawableId, textureId, paletteId);

Required Arguments

  • componentId: int
  • drawableId: int
  • textureId: int
  • paletteId: int

Return value

  • Undefined

Example

// set shirt on player
 player.setComponentVariation(11, 4, 0, 2);

See also