IsColor

From Garry's Mod
Revision as of 16:08, 30 June 2019 by Spar (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 IsColor( )

Description

Returns whether the given object does or doesn't have a metatable of a color.

BUG

Engine functions (i.e. those not written in plain Lua) that return color objects do not currently set the color metatable and this function will return false if you use it on them.

Issue Tracker: #2407

Arguments

any Object

The object to be tested

Returns

boolean

Whether the given object is a color or not
Personal tools
Navigation