Player::setPropIndex: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
 
Line 1: Line 1:
ComponentId can be set to various things based on what category you're wanting to set<br>enum PedPropsData<br>{<br> Player_PROP_HATS = 0,<br> Player_PROP_GLASSES = 1,<br> Player_PROP_EARS = 2,<br>};<br>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);<br><br>List of component/props ID<br>gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
ComponentId can be set to various things based on what category you're wanting to set.<br>
 
{| class="wikitable"
|-
! colspan="4"| Props
|-
! Component ID !! Part !! colspan="2"| Gender
|-
| style="text-align:center" | 0
| Hats || [[Male_Hats|Male]] || [[Female_Hats|Female]]
|-
| style="text-align:center" | 1
| Glasses || [[Male_Glasses|Male]] || [[Female_Glasses|Female]]
|-
| style="text-align:center" | 2 || Ears || [[Male_Ears|Male]] || [[Female_Ears|Female]]
|-
| style="text-align:center" | 6 || Watches || [[Male_Watches|Male]] || [[Female_Watches|Female]]
|-
| style="text-align:center" | 7 || Bracelets || [[Male_Bracelets|Male]] || [[Female_Bracelets|Female]]
|-
|}
 
List of component/props ID: http://gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.setPropIndex(componentId, drawableId, TextureId, attach);</syntaxhighlight>
<syntaxhighlight lang="javascript">player.setPropIndex(componentId, drawableId, TextureId, attach);</syntaxhighlight>

Latest revision as of 02:33, 24 February 2020

ComponentId can be set to various things based on what category you're wanting to set.

Props
Component ID Part Gender
0 Hats Male Female
1 Glasses Male Female
2 Ears Male Female
6 Watches Male Female
7 Bracelets Male Female

List of component/props ID: http://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