# engineGetModelStencil (Client)

> Gives the stencil value a model is marked with.

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

## Syntax

```lua
int engineGetModelStencil(string|element model)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `model` | `string\|element` | The model's name or a `model` element. |

## Returns

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

## Example

```lua
local value, seeThrough = engineGetModelStencil("kmb_atm1")
if value == 0 then
    engineSetModelStencil("kmb_atm1", 3)
end
```

## See also

- [engineSetModelStencil (Client)](https://wiki.mymp.gg/en/engineSetModelStencil.md): Marks every instance of a model with a stencil value, which post shaders read for outlines, highlights and similar effects.
- [engineRestoreModelStencil (Client)](https://wiki.mymp.gg/en/engineRestoreModelStencil.md): Removes the stencil mark this resource set with engineSetModelStencil.
