Skip to main content

Player::setFaceFeature

Sets the various freemode face features, e.g. nose length, chin shape. Scale ranges from -1.0 to 1.0. Index can be 0 - 19.

IndexFace featureMinMax
0Nose width-1.0 narrow1.0 wide
1Nose height-1.0 top1.0 bottom
2Nose length-1.0 grand1.0 petite
3Nose bridge-1.0 round1.0 hollow
4Nose tip-1.0 upward1.0 downward
5Nose bridge shift-1.0 to the right1.0 to the left
6Brow height-1.0 top1.0 bottom
7Brow width-1.0 inward1.0 outward
8Cheekbone height-1.0 top1.0 bottom
9Cheekbone width-1.0 narrow1.0 wide
10Cheeks width-1.0 wide1.0 narrow
11Eyes-1.0 opened1.0 closed
12Lips-1.0 wide1.0 narrow
13Jaw width-1.0 narrow1.0 wide
14Jaw height-1.0 top1.0 bottom
15Chin length-1.0 small1.0 long
16Chin position-1.0 inward1.0 outward
17Chin width-1.0 narrow1.0 grand
18Chin shape-1.0 simple chin1.0 double chin
19Neck width-1.0 narrow1.0 wide

Syntax

```js player.setFaceFeature(index, scale); ```

Required Arguments

  • index: int
  • scale: float

Return value

  • Undefined

Example

```js function updateAppearance(genderChanged) {

   if (genderChanged) \{
       mp.players.local.model = characterData.gender ? mp.game.joaat("mp_m_freemode_01") : mp.game.joaat("mp_f_freemode_01");

       setTimeout(sUpdateAppearance, 100);
   \}

   else
       sUpdateAppearance();
   \}

   function sUpdateAppearance() \{
       
       for (var i = 0; i < 20; i++)
           mp.players.local.setFaceFeature(i, characterData.faceFeatures[i]);
   \}

} ```

See also