Garry's Mod Wiki

ITexture:IsError

  boolean ITexture:IsError()

Description

Returns whenever the texture is valid. (i.e. was loaded successfully or not)

The "error" texture is a valid texture, and therefore this function will return false when used on it. Use ITexture:IsErrorTexture, instead.

Returns

1 boolean
Whether the texture was loaded successfully or not.