# engineResetShaderGlobal (Client)

> Drops the value this resource gave a shader global, so the global goes back to the next one's value.

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

## Syntax

```lua
bool engineResetShaderGlobal(string name)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `name` | `string` | The global's name. |

## Returns

`true` if this resource had a value in that global, `false` if not.

## Example

```lua
engineSetShaderGlobal("alarmPulse", 1, 5)

setTimer(function()
    engineResetShaderGlobal("alarmPulse")
end, 10000, 1)
```

## See also

- [engineSetShaderGlobal (Client)](https://wiki.mymp.gg/en/engineSetShaderGlobal.md): Sets a shader global, a value every shader reads. A new name creates the global.
- [engineGetShaderGlobal (Client)](https://wiki.mymp.gg/en/engineGetShaderGlobal.md): Reads a shader global's current value.
