<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/HU/setCameraShakeLevel?action=history&amp;feed=atom</id>
	<title>HU/setCameraShakeLevel - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/HU/setCameraShakeLevel?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/setCameraShakeLevel&amp;action=history"/>
	<updated>2026-05-19T18:53: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/setCameraShakeLevel&amp;diff=58567&amp;oldid=prev</id>
		<title>Surge: Created page with &quot;{{Client function}} __NOTOC__ {{New feature/item|3.0150|1.5|7343| This function sets the camera shake level (as seen on the ''Are you going to San Fierro?'' singleplayer missi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/setCameraShakeLevel&amp;diff=58567&amp;oldid=prev"/>
		<updated>2018-08-26T15:30:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Client function}} __NOTOC__ {{New feature/item|3.0150|1.5|7343| This function sets the camera shake level (as seen on the &amp;#039;&amp;#039;Are you going to San Fierro?&amp;#039;&amp;#039; singleplayer missi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature/item|3.0150|1.5|7343|&lt;br /&gt;
This function sets the camera shake level (as seen on the ''Are you going to San Fierro?'' singleplayer mission).}}&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 setCameraShakeLevel ( int shakeLevel )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''shakeLevel''': an integer between 0 and 255, which represents the camera shake intensity level.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the camera shake level was changed, ''false'' if the required argument is incorrect or missing.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example adds a ''/camshake'' command which allows any player to manually change its camera shake level.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler( &amp;quot;camshake&amp;quot;,&lt;br /&gt;
    function( _, level )&lt;br /&gt;
        local level = math.floor( level )&lt;br /&gt;
        if level and level &amp;gt;=0 and level &amp;lt;= 255 then&lt;br /&gt;
            setCameraShakeLevel( level )&lt;br /&gt;
            outputChatBox( &amp;quot;Camera shake level updated to &amp;quot; .. level .. &amp;quot;.&amp;quot; )&lt;br /&gt;
        else&lt;br /&gt;
            outputChatBox( &amp;quot;Camera shake level must be between 0 and 255.&amp;quot; )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&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:setCameraShakeLevel]]&lt;/div&gt;</summary>
		<author><name>Surge</name></author>
	</entry>
</feed>