<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/RO/getPedAmmoInClip?action=history&amp;feed=atom</id>
	<title>RO/getPedAmmoInClip - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/RO/getPedAmmoInClip?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/getPedAmmoInClip&amp;action=history"/>
	<updated>2026-05-14T23:07:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RO/getPedAmmoInClip&amp;diff=76290&amp;oldid=prev</id>
		<title>Hydra at 16:21, 15 March 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/getPedAmmoInClip&amp;diff=76290&amp;oldid=prev"/>
		<updated>2023-03-15T16:21:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:21, 15 March 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l38&quot;&gt;Line 38:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Issue|734|Sometimes wrong count of player ammo, if get it in onPlayerWeaponFire}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Issue|734|Sometimes wrong count of player ammo, if get it in onPlayerWeaponFire}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Tradus==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'''de către Hydra (Gabriel45#6859 - Discord)'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Vezi și==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Vezi și==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-76289:rev-76290 --&gt;
&lt;/table&gt;</summary>
		<author><name>Hydra</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RO/getPedAmmoInClip&amp;diff=76289&amp;oldid=prev</id>
		<title>Hydra: Created page with &quot;__NOTOC__ {{Server client function}} Această funcție returnează un număr care conține muniția dintr-o armă specificată a lui ped. Vedeți Informații despre arme  ==Syntax== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; int getPedAmmoInClip ( ped thePed [, int weaponSlot = current ] ) &lt;/syntaxhighlight&gt;  {{OOP||ped:getAmmoInClip|ammoInClip}}  ===Argumente Necesare=== *'''thePed:''' ped a cărui muniție doriți să verificați.  ===Argumente Opționale=== *...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RO/getPedAmmoInClip&amp;diff=76289&amp;oldid=prev"/>
		<updated>2023-03-15T16:20:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{Server client function}} Această funcție returnează un număr care conține muniția dintr-o armă specificată a lui &lt;a href=&quot;/wiki/Ped&quot; class=&quot;mw-redirect&quot; title=&quot;Ped&quot;&gt;ped&lt;/a&gt;. Vedeți &lt;a href=&quot;/wiki/Weapon&quot; class=&quot;mw-redirect&quot; title=&quot;Weapon&quot;&gt;Informații despre arme&lt;/a&gt;  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; int getPedAmmoInClip ( ped thePed [, int weaponSlot = current ] ) &amp;lt;/syntaxhighlight&amp;gt;  {{OOP||&lt;a href=&quot;/wiki/Ped&quot; class=&quot;mw-redirect&quot; title=&quot;Ped&quot;&gt;ped&lt;/a&gt;:getAmmoInClip|ammoInClip}}  ===Argumente Necesare=== *&amp;#039;&amp;#039;&amp;#039;thePed:&amp;#039;&amp;#039;&amp;#039; &lt;a href=&quot;/wiki/Ped&quot; class=&quot;mw-redirect&quot; title=&quot;Ped&quot;&gt;ped&lt;/a&gt; a cărui muniție doriți să verificați.  ===Argumente Opționale=== *...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
Această funcție returnează un număr care conține muniția dintr-o armă specificată a lui [[ped]]. Vedeți [[weapon|Informații despre arme]]&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getPedAmmoInClip ( ped thePed [, int weaponSlot = current ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{OOP||[[ped]]:getAmmoInClip|ammoInClip}}&lt;br /&gt;
&lt;br /&gt;
===Argumente Necesare===&lt;br /&gt;
*'''thePed:''' [[ped]] a cărui muniție doriți să verificați.&lt;br /&gt;
&lt;br /&gt;
===Argumente Opționale===&lt;br /&gt;
*'''weaponSlot:''' Un număr reprezentând slotul pentru armă (setat la slotul selectat curent al ped-ului dacă nu este specificat).&lt;br /&gt;
&lt;br /&gt;
===Returnează===&lt;br /&gt;
Returnează un [[int]] care conține cantitatea de muniție din clipul selectat sau specificat al dispozitivului specificat sau 0 dacă dispozitivul specificat este nevalid.&lt;br /&gt;
&lt;br /&gt;
==Exemplu==&lt;br /&gt;
Acest exemplu arată cantitatea de muniție pe care jucătorul specificat o are în slotul său actual. De exemplu: „muniție cineva”.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function showAmmo(thePlayer, command, who )&lt;br /&gt;
	local targetPlayer = getPlayerFromName ( who )&lt;br /&gt;
	if ( thePlayer ) then&lt;br /&gt;
		local ammo = getPedAmmoInClip ( targetPlayer )&lt;br /&gt;
		outputChatBox ( who .. &amp;quot; has &amp;quot; .. ammo .. &amp;quot; ammo in his active clip&amp;quot; )&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox ( &amp;quot;Player '&amp;quot; .. who .. &amp;quot;' not found.&amp;quot; )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;ammo&amp;quot;, showAmmo )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Probleme ==&lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|734|Sometimes wrong count of player ammo, if get it in onPlayerWeaponFire}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Vezi și==&lt;br /&gt;
{{Client_ped_functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:getPedAmmoInClip]]&lt;/div&gt;</summary>
		<author><name>Hydra</name></author>
	</entry>
</feed>