<?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=GivePlayerWeapon</id>
	<title>GivePlayerWeapon - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=GivePlayerWeapon"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=GivePlayerWeapon&amp;action=history"/>
	<updated>2026-07-24T20:13:14Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=GivePlayerWeapon&amp;diff=10152&amp;oldid=prev</id>
		<title>imported&gt;Xabi в 21:51, 22 декабря 2022</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=GivePlayerWeapon&amp;diff=10152&amp;oldid=prev"/>
		<updated>2022-12-22T21:51:56Z</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;Gives the given player a weapon of the given type. See also [[Weapons Models]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;C#&amp;quot;&amp;gt;void NAPI.Player.GivePlayerWeapon(Player player, WeaponHash weaponHash, int ammo);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;player:&amp;#039;&amp;#039;&amp;#039; parameter input should be in &amp;#039;&amp;#039;&amp;#039;Player&amp;#039;&amp;#039;&amp;#039; type.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;weaponHash:&amp;#039;&amp;#039;&amp;#039; parameter input should be in &amp;#039;&amp;#039;&amp;#039;WeaponHash&amp;#039;&amp;#039;&amp;#039; type.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;ammo:&amp;#039;&amp;#039;&amp;#039; parameter input should be in &amp;#039;&amp;#039;&amp;#039;int&amp;#039;&amp;#039;&amp;#039; type.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: All the weapons in a slot share the same ammo.&lt;br /&gt;
&lt;br /&gt;
==Usage example(s)==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;C#&amp;quot;&amp;gt;&lt;br /&gt;
// Use as: /weapon smg&lt;br /&gt;
[Command(&amp;quot;weapon&amp;quot;)]&lt;br /&gt;
public void WeaponCommand(Player sender, WeaponHash hash)&lt;br /&gt;
{&lt;br /&gt;
  NAPI.Player.GivePlayerWeapon(sender, hash, 500);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Serverside API]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Xabi</name></author>
	</entry>
</feed>