ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. getElementLighting

Function

getElementLighting

ClientElementsIdentical to MTA:SA

Returns how strongly the element is lit (0 dark, 1 bright).

Syntax

float getElementLighting(element theElement)

Arguments

theElementelement
The element.

Returns

Lighting 0-1.

Example

if getElementLighting(localPlayer) < 0.3 then
    outputChatBox("Jest ciemno, włącz latarkę.")
end