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

Function

setGroundDecalColor

New function!Added to Trilogy Hub on 2 Nov 2026.

ClientDrawing (dx)Trilogy Hub only

Changes the colour of a decal made with createGroundDecal.

Syntax

bool setGroundDecalColor(int decal, int color)

Arguments

decalint
Decal number.
colorint
Colour from tocolor.

Returns

true on success.

Example

local x, y, z = getElementPosition(localPlayer)
local decal = createGroundDecal("img/okrag.png", x, y, z, 4)
setGroundDecalColor(decal, tocolor(255, 60, 60, 200))

See also