<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Driftyz</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Driftyz"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Driftyz"/>
	<updated>2026-05-01T17:47:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCameraViewMode&amp;diff=64790</id>
		<title>SetCameraViewMode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCameraViewMode&amp;diff=64790"/>
		<updated>2019-12-19T09:02:09Z</updated>

		<summary type="html">&lt;p&gt;Driftyz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function allows you to set the camera's view mode if you are inside a [[vehicle]]. This indicates at what distance the camera will follow the player.&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 setCameraViewMode ( int viewMode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||Camera.setCameraViewMode|viewMode|getCameraViewMode}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''viewMode''': The view mode you wish to use&lt;br /&gt;
{{Camera view modes}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the view was set correctly, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example sets the camera to bumper view when the local player enters any vehicle.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerVehicleEnter&amp;quot;, localPlayer, function()&lt;br /&gt;
  setCameraViewMode(0)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client camera functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:setCameraViewMode]]&lt;/div&gt;</summary>
		<author><name>Driftyz</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCameraViewMode&amp;diff=64789</id>
		<title>SetCameraViewMode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCameraViewMode&amp;diff=64789"/>
		<updated>2019-12-19T08:59:41Z</updated>

		<summary type="html">&lt;p&gt;Driftyz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function allows you to set the camera's view mode if you are inside a [[vehicle]]. This indicates at what distance the camera will follow the player.&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 setCameraViewMode ( int viewMode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||Camera.setCameraViewMode|viewMode|getCameraViewMode}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''viewMode''': The view mode you wish to use&lt;br /&gt;
{{Camera view modes}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the view was set correctly, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example sets the camera to bumper view when the local player enters any vehicle.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerVehicleEnter&amp;quot;, localPlayer, function()&lt;br /&gt;
  setCameraViewMode(0)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client camera functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:setCameraViewMode]]&lt;/div&gt;</summary>
		<author><name>Driftyz</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetCameraViewMode&amp;diff=64788</id>
		<title>GetCameraViewMode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetCameraViewMode&amp;diff=64788"/>
		<updated>2019-12-19T08:58:21Z</updated>

		<summary type="html">&lt;p&gt;Driftyz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function allows you to get the camera's view mode. This indicates at what distance the camera will follow the player.&lt;br /&gt;
{{Note|It currently only returns vehicle view modes.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getCameraViewMode (  )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||Camera.getCameraViewMode|viewMode|setCameraViewMode}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an [[int]] indicating the current camera view mode. Their meanings can be seen below.&lt;br /&gt;
&lt;br /&gt;
{{Camera view modes}}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example tells the player their current camera view when they change it&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerSpawn ( theSpawnpoint )&lt;br /&gt;
    currentCam(&amp;quot;fire&amp;quot;) -- start a repeating check&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientPlayerSpawn&amp;quot;, root, onPlayerSpawn )&lt;br /&gt;
&lt;br /&gt;
function currentCam(key)&lt;br /&gt;
   if (getControlState(key)) then&lt;br /&gt;
      outputChatBox(&amp;quot;Your current cam view is: &amp;quot;..getCameraViewMode()..&amp;quot;.&amp;quot;)&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client camera functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:getCameraViewMode]]&lt;/div&gt;</summary>
		<author><name>Driftyz</name></author>
	</entry>
</feed>