getCameraGoggleEffect | Multi Theft Auto: Wiki Skip to content

getCameraGoggleEffect

Client-side
Server-side
Shared

Pair: setCameraGoggleEffect

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function returns what goggle effect is currently affecting the camera.

Syntax

getCameraGoggleEffect ( )

Code Examples

client

This example adds a command to enable or disable the nightvision effect.

function nightvision()
if (getCameraGoggleEffect() == "normal") then
setCameraGoggleEffect("nightvision")
elseif (getCameraGoggleEffect() == "nightvision") then
setCameraGoggleEffect("normal")
end
end
addCommandHandler("nightvision", nightvision)