Skip to main content

SET_CHAR_COMPONENT_VARIATION

Game.SetCharComponentVariationHash0x71A52973
Usage
Game.SetCharComponentVariation(charIndex, componentNumber, newDrawableNumber, newTextureNumber)

Sets the drawable (model part) and the texture of a component (body part) of the char.

componentNumberBody partFile name
0Headhead
1Upper bodyuppr
2Lower bodylowr
3Accessoriessuse
4Handshand
5Feetfeet
6Jacketjack
7Hairhair
8Accessories 2sus2
9Teethteef
10Faceface

Textures are numbered by the letter in the file name: a is 0, b is 1 and so on. A model has at most 16 drawables per component.

Nothing happens if the model has no such component or no such drawable. The texture is not checked, use GET_NUMBER_OF_CHAR_TEXTURE_VARIATIONS to stay in range.

Other players see the clothes of your own character, except the components 4 (hands), 6 (jacket) and 9 (teeth), and only with the textures 0 to 15 (a to p). Changes to the character of another player are not sent to anyone.

Parameters

  • charIndexintegerint
  • componentNumberintegerint
  • newDrawableNumberintegerint
  • newTextureNumberintegerint

Returns

Nothing

Original declaration
// 0x71A52973
void SET_CHAR_COMPONENT_VARIATION(int charIndex, int componentNumber, int newDrawableNumber, int newTextureNumber);