- Documentation
- Client functions
- setCameraGoggleEffect
Function
setCameraGoggleEffect
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")