# engineGetMaterialSwitches (Cliente)

> Lista as chaves estáticas do shader de um material, com o valor que cada uma tem nele.

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

## Sintaxe

```lua
table engineGetMaterialSwitches(material material)
```

## Parâmetros

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

## Retorno

Uma tabela de nome da chave → `true` ou `false`, mais `textures`, um texto hexadecimal com um bit por textura do shader que tem imagem. Vazia quando o material não tem shader.

## Exemplo

```lua
local material = engineCreateMaterial("surface")
for name, value in pairs(engineGetMaterialSwitches(material)) do
    outputDebugString(name .. " = " .. tostring(value))
end
```

## Veja também

- [engineGetShaderSwitches (Cliente)](https://wiki.mymp.gg/pt/engineGetShaderSwitches.md): Lista as chaves estáticas (parâmetros bool) de um shader ou preset, com o valor padrão de cada uma.
- [engineSetMaterialValue (Cliente)](https://wiki.mymp.gg/pt/engineSetMaterialValue.md): Define um valor do material: um parâmetro do shader, uma chave estática ou a render target de uma saída TARGET_n.
