Player::setComponentVariation

From RAGE Multiplayer Wiki
Revision as of 11:20, 22 February 2020 by YnnhoJ (talk | contribs)
Component ID Part
0 Face
1 Head
2 Hair
3 Torso
4 Legs
5 Hands
6 Feet
7 Eyes
8 Accessories
9 Tasks
10 Textures
11 Torso2

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.

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