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

Function

setCameraGoggleEffect

ClientCameraIdentical to MTA:SA

Turns on a game image filter: night vision (a green, brightened image) or thermal vision (warm peds and vehicles in red, the rest in blue). "normal" turns the filter off. It is the same effect as the goggles in the game.

Syntax

bool setCameraGoggleEffect(string goggleEffect [, bool noiseEnabled = true])

Arguments

goggleEffectstring
"normal", "nightvision" or "thermalvision".
noiseEnabledbool, optional = true
Unused: the game always adds its own noise.

Returns

true on success.

Example

setCameraGoggleEffect("nightvision")

See also