M MY Multiplayer: Wiki
Side
Kind

engineRestoreWorldTexture

Client

Removes the world texture swaps this resource set with engineSetWorldTexture.

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

Parameters

NameTypeDescription
namestringOnly the swaps made under this name or pattern. Without it, every world swap of this resource.default nil
sourcetexture|dui|boolOnly 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)

See also