Player::setComponentVariation

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

paletteId/palletColor - 0 to 3.
enum PedVariationData
{
Player_VARIATION_FACE = 0,
Player_VARIATION_HEAD = 1,
Player_VARIATION_HAIR = 2,
Player_VARIATION_TORSO = 3,
Player_VARIATION_LEGS = 4,
Player_VARIATION_HANDS = 5,
Player_VARIATION_FEET = 6,
Player_VARIATION_EYES = 7,
Player_VARIATION_ACCESSORIES = 8,
Player_VARIATION_TASKS = 9,
Player_VARIATION_TEXTURES = 10,
Player_VARIATION_TORSO2 = 11
};
Usage:
SET_Player_COMPONENT_VARIATION(playerPed, Player_VARIATION_FACE, GET_NUMBER_OF_Player_DRAWABLE_VARIATIONS(playerPed, Player_VARIATION_FACE), GET_NUMBER_OF_Player_TEXTURE_VARIATIONS(playerPed, Player_VARIATION_FACE, 0), 2);

List of component/props ID
gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html

See player clothes: https://wiki.rage.mp/index.php?title=Clothes

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