getLightRadius | Multi Theft Auto: Wiki Skip to content

getLightRadius

Client-side
Server-side
Shared

Pair: setLightRadius

Manual Review Required

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


This function returns the radius for a light element.

OOP Syntax Help! I don't understand this!

  • Method:light:getRadius(...)
  • Variable: .radius

Syntax

float getLightRadius ( light theLight )
Required Arguments
  • theLight: The light that you wish to retrieve the radius of.

Returns

  • float: value

Returns a float containing the radius of the specified light, false if invalid arguments were passed.

Code Examples

shared
local light = createLight(0, 0, 0, 4)
outputChatBox("light radius: " .. getLightRadius(light))