getLightType | Multi Theft Auto: Wiki Skip to content

getLightType

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function returns the type for a light element.

OOP Syntax Help! I don't understand this!

  • Method:light:getType(...)

Syntax

int getLightType ( light theLight )
Required Arguments
  • theLight: The light that you wish to retrieve the type of.

Returns

  • int: value

Returns an int containing the type of the specified light, false if invalid arguments were passed.

Code Examples

shared
local light = createLight(1, 2, 3, 4)
outputChatBox("light type " .. getLightType(light))