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

Function

setLightRadius

ServerLightsIdentical to MTA:SA

Changes the light radius (0-255 m).

Syntax

bool setLightRadius(element theLight, float radius)

Arguments

theLightelement
The light.
radiusfloat
Radius in metres.

Returns

true on success.

Example

local lamp = createLight(0, 0, 0, 5)
setLightRadius(lamp, 20)

See also