<?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%3AgetModelMonetaryValue</id>
	<title>Vehicle::getModelMonetaryValue - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Vehicle%3A%3AgetModelMonetaryValue"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Vehicle::getModelMonetaryValue&amp;action=history"/>
	<updated>2026-07-25T04:52:30Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Vehicle::getModelMonetaryValue&amp;diff=15844&amp;oldid=prev</id>
		<title>imported&gt;Shr0x в 15:54, 9 ноября 2024</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Vehicle::getModelMonetaryValue&amp;diff=15844&amp;oldid=prev"/>
		<updated>2024-11-09T15:54:36Z</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 `getModelMonetaryValue` function retrieves the in-game monetary value of a specified vehicle model, identified by its model hash. This value can be used for various purposes, such as checking the cost of a vehicle or implementing custom pricing logic.&lt;br /&gt;
&lt;br /&gt;
===Required Params===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;vehicleModel:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} — The model hash of the vehicle.&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 monetary value of the vehicle model.&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.getModelMonetaryValue(vehicleModel)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example retrieves and displays the monetary value of a given vehicle model (e.g., `adder`).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// Define the vehicle model by its hash&lt;br /&gt;
const adderModelHash = mp.game.joaat(&amp;quot;adder&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
// Get the monetary value of the vehicle model&lt;br /&gt;
const monetaryValue = mp.game.vehicle.getModelMonetaryValue(adderModelHash);&lt;br /&gt;
&lt;br /&gt;
// Display the monetary value in chat&lt;br /&gt;
mp.gui.chat.push(`Monetary Value of Adder: $${monetaryValue}`);&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:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Shr0x</name></author>
	</entry>
</feed>