# getElementBoundingBox (Client)

> Reads the collision box of an element's model, relative to the model's origin.

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

## Syntax

```lua
vec3, vec3|false getElementBoundingBox(element element)
```

## Parameters

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

## Returns

Two `vec3`, the box's minimum and maximum corners, 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
    local min, max = getElementBoundingBox(vehicle)
    outputDebugString(("length: %.1f m"):format(max.y - min.y))
end
```

## See also

- [getElementRadius (Client)](https://wiki.mymp.gg/en/getElementRadius.md): Reads the radius of the collision sphere of an element's model.
- [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.
- [getElementModel (Shared)](https://wiki.mymp.gg/en/getElementModel.md): Reads the name of an element's model.
