# engineGetElementStencil (Client)

> Gives the stencil value a vehicle, ped or object is marked with.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Materials and shaders
- **URL**: https://wiki.mymp.gg/en/engineGetElementStencil

## Syntax

```lua
int engineGetElementStencil(element element)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `element` | `element` | A vehicle, ped, player or object. |

## Returns

Two values: the mark (0 when there is none) and whether it is `seeThrough`.

## Example

```lua
local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle then
    local value, seeThrough = engineGetElementStencil(vehicle)
    outputDebugString(value .. " " .. tostring(seeThrough))
end
```

## See also

- [engineSetElementStencil (Client)](https://wiki.mymp.gg/en/engineSetElementStencil.md): Marks a vehicle, ped or object with a stencil value, which post shaders read for outlines, highlights and similar effects.
- [engineRestoreElementStencil (Client)](https://wiki.mymp.gg/en/engineRestoreElementStencil.md): Removes the stencil mark this resource set with engineSetElementStencil.
