ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getLightType

Function

getLightType

ServerLightsIdentical to MTA:SA

Returns the light type: 0 point, 1 spot.

Syntax

int getLightType(element theLight)

Arguments

theLightelement
The light.

Returns

The type, or false.

Example

local lamp = createLight(1, 0, 0, 5)
outputDebugString(getLightType(lamp))

See also