# getPedContactElement (Client)

> Returns the vehicle or object a ped is standing on.

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

## Syntax

```lua
vehicle|object|false getPedContactElement(ped thePed)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `thePed` | `ped` | The ped or player. |

## Returns

The vehicle or object, or `false` if the ped is on the map's ground, on a building, in the air or cannot be read.

## Example

```lua
addEventHandler("onClientRender", root, function()
    local contact = getPedContactElement(localPlayer)
    if contact and getElementType(contact) == "vehicle" then
        dxDrawText("On top of a vehicle", 20, 300)
    end
end)
```

## See also

- [isPedOnGround (Shared)](https://wiki.mymp.gg/en/isPedOnGround.md): Tells whether a ped or player is on the ground.
- [getPedOccupiedVehicle (Shared)](https://wiki.mymp.gg/en/getPedOccupiedVehicle.md): Gets the vehicle a ped or player is in.
