Skip to main content

Player::setPropIndex

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

<table> <thead> <tr> <th colspan="4"><p>Props</p></th> </tr> </thead> <tbody> <tr> <td><p>Component ID</p></td> <td><p>Part</p></td> <td colspan="2"><p>Gender</p></td> </tr> <tr> <td style="text-align:center"><p>0</p></td> <td><p>Hats</p></td> <td><p>Male</p></td> <td><p>Female</p></td> </tr> <tr> <td style="text-align:center"><p>1</p></td> <td><p>Glasses</p></td> <td><p>Male</p></td> <td><p>Female</p></td> </tr> <tr> <td style="text-align:center"><p>2</p></td> <td><p>Ears</p></td> <td><p>Male</p></td> <td><p>Female</p></td> </tr> <tr> <td style="text-align:center"><p>6</p></td> <td><p>Watches</p></td> <td><p>Male</p></td> <td><p>Female</p></td> </tr> <tr> <td style="text-align:center"><p>7</p></td> <td><p>Bracelets</p></td> <td><p>Male</p></td> <td><p>Female</p></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> </tr> </tbody> </table>

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

Syntax

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

Required Arguments

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

Return value

  • Undefined

Example

```js // todo ```

See also