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

Function

getCameraTarget

Server and clientCameraIdentical to MTA:SA

Returns the element the camera follows, or false when the camera is fixed.

Syntax

Server

element getCameraTarget(player thePlayer)

Client

element getCameraTarget()

Arguments

thePlayerplayer
The player (server only).

Returns

The element or false.

Example

if getCameraTarget() ~= localPlayer then
    dxDrawText("Tryb obserwatora", 20, 20)
end

See also