# getElementModel (Shared)

> Reads the name of an element's model.

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

## Syntax

```lua
string|false getElementModel(element element)
```

## Parameters

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

## Returns

The model's name, or `false` if the element has no model.

## Example

```lua
local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle then
    outputDebugString("You are driving a " .. getElementModel(vehicle))
end
```

### Coming from MTA

Returns the model's name, not a number as in MTA.

## See also

- [setElementModel (Server)](https://wiki.mymp.gg/en/setElementModel.md): Changes the model of a ped or player, and of its children.
- [getElementType (Shared)](https://wiki.mymp.gg/en/getElementType.md): Reads an element's type, such as "player", "vehicle" or the type given to createElement.
