# engineGetMaterialParameters (Client)

> Lists the parameters of the shader a material uses.

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

## Syntax

```lua
table engineGetMaterialParameters(material material)
```

## Parameters

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

## Returns

The same table `engineGetShaderParameters` gives for that shader.

## Example

```lua
local material = engineCreateMaterial("surface")
for name, parameter in pairs(engineGetMaterialParameters(material)) do
    outputDebugString(name .. ": " .. parameter.type)
end
```

### Note

A material with no shader (no base and no shader of its own) is an error.

## See also

- [engineGetShaderParameters (Client)](https://wiki.mymp.gg/en/engineGetShaderParameters.md): Lists the parameters a shader or preset declares.
- [engineSetMaterialValue (Client)](https://wiki.mymp.gg/en/engineSetMaterialValue.md): Sets a material's value: a shader parameter, a static switch or the render target of a TARGET_n output.
- [engineGetMaterialValue (Client)](https://wiki.mymp.gg/en/engineGetMaterialValue.md): Reads a value the material sets: a parameter, a static switch or a TARGET_n output.
