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

Function

getSearchLightEndPosition

Server and clientLightsIdentical to MTA:SA

Returns the point the searchlight shines at.

Syntax

float, float, float getSearchLightEndPosition(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 = getSearchLightEndPosition(light)

See also