<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/HU/setCameraGoggleEffect?action=history&amp;feed=atom</id>
	<title>HU/setCameraGoggleEffect - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/HU/setCameraGoggleEffect?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/setCameraGoggleEffect&amp;action=history"/>
	<updated>2026-05-15T22:50:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HU/setCameraGoggleEffect&amp;diff=58560&amp;oldid=prev</id>
		<title>Surge: Created page with &quot;__NOTOC__ {{Client function}} This function allows you to set the camera's current goggle effect. This means you can activate nightvision or infrared effects by script  ==Synt...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/setCameraGoggleEffect&amp;diff=58560&amp;oldid=prev"/>
		<updated>2018-08-26T15:28:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{Client function}} This function allows you to set the camera&amp;#039;s current goggle effect. This means you can activate nightvision or infrared effects by script  ==Synt...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function allows you to set the camera's current goggle effect. This means you can activate nightvision or infrared effects by script&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setCameraGoggleEffect ( string goggleEffect [, bool noiseEnabled = true ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||Camera.setGoggleEffect|goggleEffect|getCameraGoggleEffect}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''goggleEffect''': the goggle effect you wish to set&lt;br /&gt;
{{Camera goggle modes}}&lt;br /&gt;
{{New feature/item|3.0156|1.5.5|13999|&lt;br /&gt;
*'''noiseEffect''': whether or not there should be a fuzzy noise effect&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* ''true'' if the effect was set correctly.&lt;br /&gt;
* ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function nightvision()&lt;br /&gt;
   local effect = (getCameraGoggleEffect() == &amp;quot;normal&amp;quot;) and &amp;quot;nightvision&amp;quot; or &amp;quot;normal&amp;quot;&lt;br /&gt;
   setCameraGoggleEffect(effect)&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;nightvision&amp;quot;, nightvision)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client camera functions hu}}&lt;br /&gt;
&lt;br /&gt;
[[en:setCameraGoggleEffect]]&lt;/div&gt;</summary>
		<author><name>Surge</name></author>
	</entry>
</feed>