ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. engineRemoveTextureFromWorldTexture

Function

engineRemoveTextureFromWorldTexture

ClientShadersTrilogy Hub only

Removes a replacement made with engineApplyTextureToWorldTexture (the same texture, pattern and element). The original comes back.

Syntax

bool engineRemoveTextureFromWorldTexture(element texture, string textureName [, element targetElement = nil])

Arguments

textureelement
The same script texture.
textureNamestring
The same name pattern.
targetElementelement, optional = nil
The same element.

Returns

true when removed.

Example

local image = dxCreateTexture("sign.png")
engineApplyTextureToWorldTexture(image, "heat_02")
setTimer(function() engineRemoveTextureFromWorldTexture(image, "heat_02") end, 30000, 1)

See also