# engineRestoreTxdTextureSampling (Client)

> Removes the sampling override this resource set on a txd's texture with `engineSetTxdTextureSampling`.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Textures
- **URL**: https://wiki.mymp.gg/en/engineRestoreTxdTextureSampling

## Syntax

```lua
bool engineRestoreTxdTextureSampling(txd|string txd, string name)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `txd` | `txd\|string` | A `txd` element, a txd's name, or the same glob pattern the override was set with. |
| `name` | `string` | The texture's name or glob pattern, as given when the override was set. |

## Returns

`true` if an override was removed, `false` if none matched.

## Example

```lua
engineSetTxdTextureSampling("infernus", "*", nil, "point")

setTimer(function()
    engineRestoreTxdTextureSampling("infernus", "*")
end, 10000, 1)
```

## See also

- [engineSetTxdTextureSampling (Client)](https://wiki.mymp.gg/en/engineSetTxdTextureSampling.md): Overrides how the world samples a txd's texture: what happens past its edges and how it is filtered. It takes the place of the material's own addressing.
- [engineRestoreTxdTexture (Client)](https://wiki.mymp.gg/en/engineRestoreTxdTexture.md): Removes the links this resource made in a txd with engineSetTxdTexture, so it gives its own textures again.
