# engineResetMaterialValue (Client)

> Drops a value the material set, or all of them, going back to what its base gives.

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

## Syntax

```lua
bool engineResetMaterialValue(material material [, string name = nil])
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `material` | `material` | The material. |
| `name` | `string` | The parameter or switch to drop. Without it, every value is dropped. *(default: `nil`)* |

## Returns

`true` if something was dropped. Without `name`, always `true`.

## Example

```lua
local material = engineCreateMaterial("surface")
engineSetMaterialValue(material, "roughnessFactor", 0.9)
engineResetMaterialValue(material, "roughnessFactor")
```

## See also

- [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.
