getLightColor | Multi Theft Auto: Wiki Skip to content

getLightColor

Client-side
Server-side
Shared

Pair: setLightColor

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function returns the color for a light element.

Syntax

getLightColor ( )

Code Examples

client
local light = createLight(0, 0, 0, 4)
local red, green, blue = getLightColor(light)
outputChatBox(" light color is " .. red .. ", " .. green .. ", " .. blue)