# setPedBodyShape (Shared)

> Changes a ped's body by a named shape, which enlarges the bones it declares.

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

## Syntax

```lua
bool setPedBodyShape(ped ped, string name, float factor)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `ped` | `ped` | The ped or player. |
| `name` | `string` | The shape's name, as the ped's skeleton declares it in `<BodyShapes>`. Up to 16 characters. |
| `factor` | `float` | From 0 (no shape) to 1 (the shape at its fullest). |

## Returns

`true` if the shape was applied, `false` if the ped already has 4 shapes other than 0.

A factor of 0 removes the shape from the ped. On the server, the change is sent to every client. On the client, it applies to this client only.

## Example

```lua
addEventHandler("onPlayerSpawn", root, function()
    setPedBodyShape(source, "muscle", 0.6)
end)
```

## See also

- [getPedBodyShape (Shared)](https://wiki.mymp.gg/en/getPedBodyShape.md): Tells how much of a body shape a ped has.
- [setPedHeadShape (Shared)](https://wiki.mymp.gg/en/setPedHeadShape.md): Adjusts a feature of a ped's face, such as the nose or the chin.
