Garry's Mod Wiki

IsColor

boolean IsColor( any Object )

Description

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.

Arguments

1 any Object
The object to be tested

Returns

1 boolean
Whether the given object is a color or not

Page Links


Special Pages


Wikis

?

Render Time: 38ms

DB GetPage 3
Generate Html 5
SaveChanges 13
Render Body 0
Render Sidebar 14