<?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=Weapon%3A%3AgetWeaponDamageType</id>
	<title>Weapon::getWeaponDamageType - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Weapon%3A%3AgetWeaponDamageType"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Weapon::getWeaponDamageType&amp;action=history"/>
	<updated>2026-07-24T21:54:51Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Weapon::getWeaponDamageType&amp;diff=16513&amp;oldid=prev</id>
		<title>imported&gt;Sgoldik в 04:22, 31 июля 2018</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Weapon::getWeaponDamageType&amp;diff=16513&amp;oldid=prev"/>
		<updated>2018-07-31T04:22:46Z</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;0=unknown (or incorrect weaponHash)&amp;lt;br&amp;gt;1= no damage (flare,snowball, petrolcan)&amp;lt;br&amp;gt;2=melee&amp;lt;br&amp;gt;3=bullet&amp;lt;br&amp;gt;4=force ragdoll fall&amp;lt;br&amp;gt;5=explosive (RPG, Railgun, grenade)&amp;lt;br&amp;gt;6=fire(molotov)&amp;lt;br&amp;gt;8=fall(WEAPON_HELI_CRASH)&amp;lt;br&amp;gt;10=electric&amp;lt;br&amp;gt;11=barbed wire&amp;lt;br&amp;gt;12=extinguisher&amp;lt;br&amp;gt;13=gas&amp;lt;br&amp;gt;14=water cannon(WEAPON_HIT_BY_WATER_CANNON)&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.weapon.getWeaponDamageType(weaponHash);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;weaponHash:&amp;#039;&amp;#039;&amp;#039; Model hash or name&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;int&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;
mp.keys.bind(0x76, false, function () { // F7 key&lt;br /&gt;
    let weaponHash = mp.game.invoke(`0x0A6DB4965674D243`, mp.players.local.handle); //GET_SELECTED_PED_WEAPON&lt;br /&gt;
    let damageType = mp.game.weapon.getWeaponDamageType(weaponHash);&lt;br /&gt;
    mp.gui.chat.push(`hash: ${weaponHash}, damageType: ${damageType}`);&lt;br /&gt;
})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See also==&lt;br /&gt;
{{Weapon_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Sgoldik</name></author>
	</entry>
</feed>