# getObjectScale (Shared)

> Returns an object's scale along each axis.

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

## Syntax

```lua
vec3|false getObjectScale(object object)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `object` | `object` | The object. |

## Returns

The scale as a vector, or `false` if the object has no entity.

## Example

```lua
local scale = getObjectScale(ramp)
outputDebugString(("Scale: %.2f, %.2f, %.2f"):format(scale.x, scale.y, scale.z))
```

## See also

- [setObjectScale (Shared)](https://wiki.mymp.gg/en/setObjectScale.md): Changes an object's size, evenly or along each axis.
