Player::setComponentVariation

From RAGE Multiplayer Wiki
Revision as of 01:43, 24 February 2020 by Paul (talk | contribs)
Component ID Part
1 Masks
2 Hair Styles
3 Torsos
4 Legs
5 Bags and Parachutes
6 Shoes
7 Accessories
8 Undershirts
9 Body Armors
10 Decals
11 Tops

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