<?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=Vehicle%3A%3AgetVehicleClass</id>
	<title>Vehicle::getVehicleClass - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Vehicle%3A%3AgetVehicleClass"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Vehicle::getVehicleClass&amp;action=history"/>
	<updated>2026-07-24T22:24:26Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Vehicle::getVehicleClass&amp;diff=15908&amp;oldid=prev</id>
		<title>imported&gt;Shr0x в 11:03, 2 ноября 2024</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Vehicle::getVehicleClass&amp;diff=15908&amp;oldid=prev"/>
		<updated>2024-11-02T11:03: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;
The `getVehicleClass` function retrieves the class of a specified vehicle. Vehicle classes in GTA V are predefined categories, such as &amp;quot;Sports,&amp;quot; &amp;quot;SUV,&amp;quot; or &amp;quot;Motorcycle,&amp;quot; that determine vehicle behavior, sound, and handling characteristics.&lt;br /&gt;
&lt;br /&gt;
=== Required Params ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;vehicle:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} – The handle or reference ID of the vehicle whose class is being retrieved.&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 class ID of the vehicle, which corresponds to a specific class category (e.g., 0 for compacts, 1 for sedans).&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.vehicle.getVehicleClass(vehicle);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
let vehicle = mp.players.local.vehicle;&lt;br /&gt;
if (vehicle) {&lt;br /&gt;
    let vehicleClass = mp.game.vehicle.getVehicleClass(vehicle.handle);&lt;br /&gt;
    mp.gui.chat.push(&amp;quot;Vehicle Class: &amp;quot; + vehicleClass);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
{{Vehicle_functions_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:Vehicle API]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>imported&gt;Shr0x</name></author>
	</entry>
</feed>