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

Function

getCameraGoggleEffect

Returns the camera filter: "normal", "nightvision" or "thermalvision".

Syntax

string getCameraGoggleEffect()

Differences from MTA:SA

  • In MTA:SA this function is server-side only.

In MTA:SA

getCameraGoggleEffect()

Returns

The filter.

Example

if getCameraGoggleEffect() ~= "normal" then
    setCameraGoggleEffect("normal")
end

See also