Garry's Mod Wiki


boolean IsColor( any Object )


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

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


1 any Object
The object to be tested


1 boolean
Whether the given object is a color or not

Page Links

Special Pages



Render Time: 46ms

DB GetPage 24
Generate Html 0
SaveChanges (1) 9
Render Body 0
Render Sidebar 10