# engineGetMaterialAlphaClip (Client)

> Gives whether the material cuts pixels out by their alpha, and below which alpha.

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

## Syntax

```lua
float|false|nil engineGetMaterialAlphaClip(material material)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `material` | `material` | The material. |

## Returns

The alpha threshold, from 0 to 1. `false` when the material does not cut out. `nil` when it does not say and follows its base.

## Example

```lua
local material = engineCreateMaterial("surface")
engineSetMaterialAlphaClip(material, 0.5)
outputDebugString(tostring(engineGetMaterialAlphaClip(material)))
```

## See also

- [engineSetMaterialAlphaClip (Client)](https://wiki.mymp.gg/en/engineSetMaterialAlphaClip.md): Makes the material cut out pixels whose alpha is below a threshold, or stop cutting out.
