Garry's Mod Wiki

ProjectedTexture:IsValid

Description

Returns true if the projected texture is valid (i.e. has not been removed), false otherwise.

Instead of calling this directly it's a good idea to call IsValid in case the variable is nil.

IsValid( ptexture )

This not only checks whether the projected texture is valid - but also checks whether it's nil.

Returns

1 boolean
Whether the projected texture is valid.