# isElementFrozen (Shared)

> Tells whether an element is frozen.

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

## Syntax

```lua
bool isElementFrozen(element element)
```

## Parameters

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

## Returns

`true` if the element is frozen, `false` if not.

## Example

```lua
local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle and isElementFrozen(vehicle) then
    outputDebugString("the vehicle is frozen")
end
```

## See also

- [setElementFrozen (Shared)](https://wiki.mymp.gg/en/setElementFrozen.md): Freezes or unfreezes an element and all its children.
