# getElementPosition (Shared)

> Reads an element's position in the world.

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

## Syntax

```lua
vec3|false getElementPosition(element element)
```

## Parameters

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

## Returns

A `vec3` with the position, or `false` if the element has no position.

## Example

```lua
local pos = getElementPosition(localPlayer)
outputDebugString(("You are at %.1f, %.1f, %.1f"):format(pos.x, pos.y, pos.z))
```

## See also

- [setElementPosition (Shared)](https://wiki.mymp.gg/en/setElementPosition.md): Moves an element to a position in the world.
- [getElementRotation (Shared)](https://wiki.mymp.gg/en/getElementRotation.md): Reads an element's rotation in degrees.
- [getElementsInRange (Shared)](https://wiki.mymp.gg/en/getElementsInRange.md): Lists the elements whose position is inside a sphere.
