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

Function

setSearchLightStartRadius

ServerLightsIdentical to MTA:SA

Sets the beam radius at the source (0-255 m).

Syntax

bool setSearchLightStartRadius(element theLight, float radius)

Arguments

theLightelement
The searchlight.
radiusfloat
Radius in metres.

Returns

true on success.

Example

local light = createSearchLight(0, 0, 30, 0, 10, 0)
setSearchLightStartRadius(light, 0.5)

Notes

The light's shape is mainly set by the end radius.

See also