- Documentation
- Client functions
- engineRemoveTextureFromWorldTexture
Function
engineRemoveTextureFromWorldTexture
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)