# getElementRadius (Client)

> Reads the radius of the collision sphere of an element's model.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Elements
- **URL**: https://wiki.mymp.gg/en/getElementRadius

## Syntax

```lua
float|false getElementRadius(element element)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `element` | `element` | The element to read. |

## Returns

The radius in metres, or `false` if the element has no model or the model's collision is not loaded.

## Example

```lua
local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle then
    outputDebugString(("radius: %.2f m"):format(getElementRadius(vehicle)))
end
```

## See also

- [getElementBoundingBox (Client)](https://wiki.mymp.gg/en/getElementBoundingBox.md): Reads the collision box of an element's model, relative to the model's origin.
- [getElementDistanceFromCentreOfMassToBaseOfModel (Client)](https://wiki.mymp.gg/en/getElementDistanceFromCentreOfMassToBaseOfModel.md): Reads the distance from an element's centre of mass to the base of its model.
