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

Function

setSearchLightEndPosition

ServerLightsIdentical to MTA:SA

Points the searchlight at a new spot.

Syntax

bool setSearchLightEndPosition(element theLight, float x, float y, float z)

Arguments

theLightelement
The searchlight.
xfloat
Target X.
yfloat
Target Y.
zfloat
Target Z.

Returns

true on success.

Example

local light = createSearchLight(0, 0, 30, 0, 10, 0)
setSearchLightEndPosition(light, 10, 10, 0)

See also