# engineRestoreWorldTexture (Client)

> Removes the world texture swaps this resource set with `engineSetWorldTexture`.

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

## Syntax

```lua
bool engineRestoreWorldTexture([string name = nil, texture|dui|bool source = nil])
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `name` | `string` | Only the swaps made under this name or pattern. Without it, every world swap of this resource. *(default: `nil`)* |
| `source` | `texture\|dui\|bool` | Only the swaps to this source (`false` for the ones that hide). *(default: `nil`)* |

## Returns

`true` if at least one swap was removed, `false` if none matched.

## Example

```lua
engineSetWorldTexture("*graffiti*", false, "world")

addCommandHandler("graffiti", function()
    engineRestoreWorldTexture("*graffiti*")
end)
```

## See also

- [engineSetWorldTexture (Client)](https://wiki.mymp.gg/en/engineSetWorldTexture.md): Swaps a texture on every model of the chosen kinds that uses it. Only the models' materials change, not the txd the texture comes from.
- [engineRestoreModelTexture (Client)](https://wiki.mymp.gg/en/engineRestoreModelTexture.md): Removes the texture swaps this resource set on a model with engineSetModelTexture.
- [engineRestoreWorldMaterial (Client)](https://wiki.mymp.gg/en/engineRestoreWorldMaterial.md): Undoes what this resource's engineSetWorldMaterial did of every model in the world.
