- Documentation
- Client functions
- setGroundDecalColor
Function
setGroundDecalColor
New function!Added to Trilogy Hub on 2 Nov 2026.
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))