Player::setComponentVariation: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 5: Line 5:
|-
|-


| 0
| Face   
|-


| 1
| 1
| Head
| Masks
|-
|-


| 2
| 2
| Hair
| Hair Styles
|-
|-


| 3
| 3
| Torso
| Torsos
|-
|-


Line 26: Line 23:


| 5
| 5
| Hands
| Bags and Parachutes
|-
|-


| 6
| 6
| Feet
| Shoes
|-
|-


| 7
| 7
| Eyes
| Accessories
|-
|-


| 8
| 8
| Accessories
| Undershirts
|-
|-




| 9
| 9
| Tasks
| Body Armors
|-
|-




| 10
| 10
| Textures
| Decals
|-
|-




| 11
| 11
| Torso2
| Tops
|-
|-


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


==Syntax==
==Syntax==

Revision as of 01:43, 24 February 2020

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