ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. getMeshObjectColor

Function

getMeshObjectColor

ClientGame engineTrilogy Hub only

Returns a model object's colour or false when it has the default material.

Syntax

int, int, int getMeshObjectColor(meshobject meshObject)

Arguments

meshObjectmeshobject
The object.

Returns

r, g, b or false.

Example

local r, g, b = getMeshObjectColor(statue)

See also