ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getSearchLightStartPosition

Function

getSearchLightStartPosition

Server and clientLightsIdentical to MTA:SA

Returns the point the searchlight shines from.

Syntax

float, float, float getSearchLightStartPosition(element theLight)

Arguments

theLightelement
The searchlight.

Returns

x, y, z, or false.

Example

local light = createSearchLight(0, 0, 30, 0, 10, 0)
local x, y, z = getSearchLightStartPosition(light)

See also