setLightColor | Multi Theft Auto: Wiki Skip to content

setLightColor

Client-side
Server-side
Shared

Pair: getLightColor

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 sets the color for a light element.

Syntax

setLightColor ( )

Code Examples

client
local light = createLight(1, 2, 3, 4)
addCommandHandler("setcoloroflight",
function(cmd, r, g, b)
if r and g and b then
setLightColor(light, tonumber(r), tonumber(g), tonumber(b))
end
end
)