setLightDirection | Multi Theft Auto: Wiki Skip to content

setLightDirection

Client-side
Server-side
Shared

Pair: getLightDirection

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 direction for a light element.

Syntax

setLightDirection ( )

Code Examples

client
local light = createLight(0, 0, 0, 4)
addCommandHandler("setdirectionoflight",
function(cmd, x, y, z)
if x and y and z then
setLightDirection(light, tonumber(x), tonumber(y), tonumber(z))
end
end
)