# setPedHeadShape (Shared)

> Adjusts a feature of a ped's face, such as the nose or the chin.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Shared
- **Category**: Appearance
- **URL**: https://wiki.mymp.gg/en/setPedHeadShape

## Syntax

```lua
bool setPedHeadShape(ped ped, string|int feature, float scale)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `ped` | `ped` | The ped or player. |
| `feature` | `string\|int` | The name of a feature the head's `<Features>` declares, or its index in that list. |
| `scale` | `float` | From -1 to 1. 0 puts the feature back to normal. |

## Returns

`true` if it was applied, `false` if the ped already has 64 adjusted features. Raises an error if the feature does not exist or the scale is outside -1 to 1.

On the server, the change is sent to every client. On the client, it applies to this client only.

## Example

```lua
addCommandHandler("nariz", function(player, command, scale)
    setPedHeadShape(player, "nose_width", tonumber(scale) or 0)
end)
```

### Coming from MTA

MTA does not have this function. It follows FiveM's `SetPedFaceFeature`.

## See also

- [getPedHeadShape (Shared)](https://wiki.mymp.gg/en/getPedHeadShape.md): Tells how far a feature of a ped's face was adjusted.
- [setPedHeadBlend (Shared)](https://wiki.mymp.gg/en/setPedHeadBlend.md): Builds a ped's face by blending the head and skin of two parents.
- [setPedBodyShape (Shared)](https://wiki.mymp.gg/en/setPedBodyShape.md): Changes a ped's body by a named shape, which enlarges the bones it declares.
