# engineGetMaterialShader (Cliente)

> Diz qual shader um material usa.

- **Plataforma**: MY Multiplayer (MYMP)
- **Tipo**: Função Lua
- **Lado**: Cliente
- **Categoria**: Materiais e shaders
- **URL**: https://wiki.mymp.gg/pt/engineGetMaterialShader

## Sintaxe

```lua
string|false engineGetMaterialShader(material material)
```

## Parâmetros

| Nome | Tipo | Descrição |
| --- | --- | --- |
| `material` | `material` | O material. |

## Retorno

O nome do shader, ou `false` quando o material não tem base nem shader próprio e usa o do material que substitui.

## Exemplo

```lua
local material = engineCreateMaterial("surface")
outputDebugString(tostring(engineGetMaterialShader(material)))
```

## Veja também

- [engineSetMaterialShader (Cliente)](https://wiki.mymp.gg/pt/engineSetMaterialShader.md): Troca o shader de um material, mantendo os valores que ele já tem.
- [engineCreateMaterial (Cliente)](https://wiki.mymp.gg/pt/engineCreateMaterial.md): Cria um material: um shader com valores de parâmetros, que depois substitui ou se sobrepõe aos materiais dos modelos.
