# getPedBodyShape (Shared)

> Tells how much of a body shape a ped has.

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

## Syntax

```lua
float|false getPedBodyShape(ped ped, string name)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `ped` | `ped` | The ped or player. |
| `name` | `string` | The shape's name. |

## Returns

The factor, from 0 to 1 (0 if the ped does not have that shape), or `false` if it is not a ped.

## Example

```lua
local muscle = getPedBodyShape(localPlayer, "muscle")
outputDebugString("muscle: " .. muscle)
```

## See also

- [setPedBodyShape (Shared)](https://wiki.mymp.gg/en/setPedBodyShape.md): Changes a ped's body by a named shape, which enlarges the bones it declares.
