# getElementBoneScale (Client)

> Returns the scale of a ped's or object's bone.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Components and bones
- **URL**: https://wiki.mymp.gg/en/getElementBoneScale

## Syntax

```lua
vec3|false getElementBoneScale(ped|object element, int|string bone)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `element` | `ped\|object` | The ped, player or object. An object needs a model with a skeleton or a node tree. |
| `bone` | `int\|string` | The bone. On a ped: an MTA bone id, a rig bone's tag or its name. On an object: a node's name or a bone's tag. |

## Returns

A `vec3` with the scale on each axis, `1` when unscaled, or `false` if the element is streamed out.

## Example

```lua
local scale = getElementBoneScale(localPlayer, 5)
if scale and scale.x ~= 1 then
    outputDebugString("The head is scaled")
end
```

### Note

Raises an error if the element has no such bone. While the element is streamed out, it returns `false`.

## See also

- [setElementBoneScale (Client)](https://wiki.mymp.gg/en/setElementBoneScale.md): Changes the scale of a ped's or object's bone. The change applies on this client only.
- [getElementBoneMatrix (Client)](https://wiki.mymp.gg/en/getElementBoneMatrix.md): Returns the world matrix of a ped's or object's bone.
