ITexture/IsError

From Garry's Mod
Jump to: navigation, search
 ITexture:IsError( )

Description

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

NOTE

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

Returns

boolean

Whether the texture was loaded successfully or not.
Personal tools
Navigation