Garry's Mod Wiki

Garry's Mod Wiki

  boolean IsColor( any Object )

Description

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

Arguments

1 any Object
The object to be tested

Returns

1 boolean
Whether the given object is a color or not

Example

How work 'isColor' function ?

local color = Color(255, 255, 255) print(IsColor(color) or "This variable is not a colour")
Output:
true

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...