DestroyLight - GalaxHD551/lightstreamer GitHub Wiki
Description
Destroy a light created with CreateLight.
Syntax
lr.DestroyLight(lightid)
Parameters
-
lightid
The light identifier.
Return Value
- Returns true on success.
Exemple
lr = ImportPackage("lightstreamer")
function cmd_light(player)
local x, y, z = GetPlayerLocation(player)
lightid = lr.CreateLight("POINTLIGHT", x, y, z)
Delay(function()
lr.DestroyLight(lightid)
AddPlayerChat(player, "The light was deleted")
end, 1500)
end
AddCommand("light", cmd_light)