Player::setPropIndex

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

ComponentId can be set to various things based on what category you're wanting to set
enum PedPropsData
{
Player_PROP_HATS = 0,
Player_PROP_GLASSES = 1,
Player_PROP_EARS = 2,
};
Usage: SET_Player_PROP_INDEX(playerPed, Player_PROP_HATS, GET_NUMBER_OF_Player_PROP_DRAWABLE_VARIATIONS(playerPed, Player_PROP_HATS), GET_NUMBER_OF_Player_PROP_TEXTURE_VARIATIONS(playerPed, Player_PROP_HATS, 0), TRUE);

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

Syntax

player.setPropIndex(componentId, drawableId, TextureId, attach);

Required Arguments

  • componentId: int
  • drawableId: int
  • TextureId: int
  • attach: Boolean

Return value

  • Undefined

Example

// todo

See also