engineRestoreWorldTexture
Client
Removes the world texture swaps this resource set with engineSetWorldTexture.
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
engineSetWorldTexture("*graffiti*", false, "world")
addCommandHandler("graffiti", function()
engineRestoreWorldTexture("*graffiti*")
end)