<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Cam%3A%3AgetFollowPedViewMode</id>
	<title>Cam::getFollowPedViewMode - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Cam%3A%3AgetFollowPedViewMode"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Cam::getFollowPedViewMode&amp;action=history"/>
	<updated>2026-07-25T05:32:18Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Cam::getFollowPedViewMode&amp;diff=437&amp;oldid=prev</id>
		<title>imported&gt;Shr0x в 15:53, 9 ноября 2024</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Cam::getFollowPedViewMode&amp;diff=437&amp;oldid=prev"/>
		<updated>2024-11-09T15:53:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ClientsideJsFunction}}&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
&lt;br /&gt;
===Explanation===&lt;br /&gt;
The `getFollowPedViewMode` function retrieves the current camera view mode used to follow the player’s character (ped). It returns an integer representing the view mode, which you can use to determine the player&amp;#039;s current perspective.&lt;br /&gt;
&lt;br /&gt;
===View Mode Values===&lt;br /&gt;
* 0 - Third Person Close&lt;br /&gt;
* 1 - Third Person Mid&lt;br /&gt;
* 2 - Third Person Far&lt;br /&gt;
* 4 - First Person&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;{{RageType|number}}&amp;#039;&amp;#039;&amp;#039; — The view mode ID as an integer.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.game.cam.getFollowPedViewMode()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example checks the current view mode and displays a message based on the player’s perspective.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// Get the current follow ped view mode&lt;br /&gt;
const viewMode = mp.game.cam.getFollowPedViewMode();&lt;br /&gt;
&lt;br /&gt;
switch(viewMode) {&lt;br /&gt;
    case 0:&lt;br /&gt;
        mp.gui.chat.push(&amp;quot;View Mode: Third Person Close&amp;quot;);&lt;br /&gt;
        break;&lt;br /&gt;
    case 1:&lt;br /&gt;
        mp.gui.chat.push(&amp;quot;View Mode: Third Person Mid&amp;quot;);&lt;br /&gt;
        break;&lt;br /&gt;
    case 2:&lt;br /&gt;
        mp.gui.chat.push(&amp;quot;View Mode: Third Person Far&amp;quot;);&lt;br /&gt;
        break;&lt;br /&gt;
    case 4:&lt;br /&gt;
        mp.gui.chat.push(&amp;quot;View Mode: First Person&amp;quot;);&lt;br /&gt;
        break;&lt;br /&gt;
    default:&lt;br /&gt;
        mp.gui.chat.push(&amp;quot;Unknown View Mode&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
==See also==&lt;br /&gt;
{{Cam_functions_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Shr0x</name></author>
	</entry>
</feed>