<?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%3AgetDisplayNameFromVehicleModel</id>
	<title>Vehicle::getDisplayNameFromVehicleModel - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Vehicle%3A%3AgetDisplayNameFromVehicleModel"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Vehicle::getDisplayNameFromVehicleModel&amp;action=history"/>
	<updated>2026-07-24T22:25:08Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Vehicle::getDisplayNameFromVehicleModel&amp;diff=15770&amp;oldid=prev</id>
		<title>imported&gt;SugarD-x: Removed dead links to Pastebin lists.</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Vehicle::getDisplayNameFromVehicleModel&amp;diff=15770&amp;oldid=prev"/>
		<updated>2020-09-05T12:33:53Z</updated>

		<summary type="html">&lt;p&gt;Removed dead links to Pastebin lists.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Returns model name of vehicle in all caps. Needs to be displayed through localizing text natives to get proper display name.&amp;lt;br&amp;gt;-----------------------------------------------------------------------------------------------------------------------------------------&amp;lt;br&amp;gt;While often the case, this does not simply return the model name of the vehicle (which could be hashed to return the model hash). Variations of the same vehicle may also use the same display name.&amp;lt;br&amp;gt;-----------------------------------------------------------------------------------------------------------------------------------------&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Returns &amp;#039;CARNOTFOUND&amp;#039; if the hash doesn&amp;#039;t match a vehicle hash.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Using UI::_GET_LABEL_TEXT, you can get the localized name.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.vehicle.getDisplayNameFromVehicleModel(modelHash);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;modelHash:&amp;#039;&amp;#039;&amp;#039; Model hash or name&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;String&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
function playerEnterVehicleHandler(vehicle) {&lt;br /&gt;
    var vehicleName = mp.game.ui.getLabelText(mp.game.vehicle.getDisplayNameFromVehicleModel(vehicle.model));&lt;br /&gt;
    mp.gui.chat.push(`Name of your vehicle: ${vehicleName}`);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
mp.events.add(&amp;quot;playerEnterVehicle&amp;quot;, playerEnterVehicleHandler);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Vehicle_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;/div&gt;</summary>
		<author><name>imported&gt;SugarD-x</name></author>
	</entry>
</feed>