ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. getCameraFieldOfView

Function

getCameraFieldOfView

ClientCameraIdentical to MTA:SA

Returns the field of view stored with setCameraFieldOfView.

Syntax

float getCameraFieldOfView([string cameraMode = nil])

Arguments

cameraModestring, optional = nil
Camera mode (for compatibility with existing scripts).

Returns

Field of view in degrees.

Example

outputChatBox("FOV: " .. tostring(getCameraFieldOfView("player")))

See also