<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/HU/setCameraFieldOfView?action=history&amp;feed=atom</id>
	<title>HU/setCameraFieldOfView - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/HU/setCameraFieldOfView?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/setCameraFieldOfView&amp;action=history"/>
	<updated>2026-04-16T12:37:58Z</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/setCameraFieldOfView&amp;diff=58558&amp;oldid=prev</id>
		<title>Surge: Created page with &quot;__NOTOC__ {{client function}} {{New feature/item|3.0151|1.5.1|7397|This function sets the field of view of the ''dynamic camera'' - this is the field of view of the ''non-fixe...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/setCameraFieldOfView&amp;diff=58558&amp;oldid=prev"/>
		<updated>2018-08-26T15:27:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{client function}} {{New feature/item|3.0151|1.5.1|7397|This function sets the field of view of the &amp;#039;&amp;#039;dynamic camera&amp;#039;&amp;#039; - this is the field of view of the &amp;#039;&amp;#039;non-fixe...&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;
{{New feature/item|3.0151|1.5.1|7397|This function sets the field of view of the ''dynamic camera'' - this is the field of view of the ''non-fixed camera'' - yes, the camera that the user can control whilst on foot or in a vehicle. The higher the field of view angle, the more you will be able to see to your sides.}}&lt;br /&gt;
{{Note|[[setCameraFieldOfView]] overrides the user game option in '''''Settings-&amp;gt;Video-&amp;gt;FOV'''''}}&lt;br /&gt;
{{Note|[[setCameraFieldOfView]] does not affect the FOV for the following camera modes: 1) Player aiming 2) Vehicle front bumper camera 3) Fixed camera}}&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setCameraFieldOfView ( string cameraMode, float fieldOfView )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||Camera.setFieldOfView||getCameraFieldOfView}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
'''Note:''' after 100, some unexpected things may happen to the camera, particularly in vehicles, use carefully!&lt;br /&gt;
*'''cameraMode:''' the camera mode to get the field of view of&lt;br /&gt;
** &amp;quot;player&amp;quot;: whilst walking/running&lt;br /&gt;
** &amp;quot;vehicle&amp;quot;: whilst in vehicle&lt;br /&gt;
** &amp;quot;vehicle_max&amp;quot;: the max the field of view can go to when the vehicle is moving at a high speed (must be higher than &amp;quot;vehicle&amp;quot;)&lt;br /&gt;
*'''fieldOfView:''' The field of view angle, 0 to 179.&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the arguments are valid, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
In this example, the field of view for 'player walking/running' is set to 20 when the player joins.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function setCameraFOVOnResStart()&lt;br /&gt;
    setCameraFieldOfView(&amp;quot;player&amp;quot;,20)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, setCameraFOVOnResStart)&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:setCameraFieldOfView]]&lt;/div&gt;</summary>
		<author><name>Surge</name></author>
	</entry>
</feed>