<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Derex</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Derex"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Derex"/>
	<updated>2026-04-27T22:44:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Ped_events&amp;diff=82387</id>
		<title>Template:Ped events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Ped_events&amp;diff=82387"/>
		<updated>2025-08-20T05:12:44Z</updated>

		<summary type="html">&lt;p&gt;Derex: Add missing onPedWeaponReload&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPedDamage]]&amp;lt;/li&amp;gt;&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|20740|&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPedVehicleEnter]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPedVehicleExit]]&amp;lt;/li&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPedWasted]]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPedWeaponSwitch]]&amp;lt;/li&amp;gt;&lt;br /&gt;
{{Added feature/item|1.6.1|1.6.0|22909|&lt;br /&gt;
&amp;lt;li&amp;gt;[[onPedWeaponReload]]&amp;lt;/li&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Events templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Derex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerWeaponReload&amp;diff=81801</id>
		<title>OnPlayerWeaponReload</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerWeaponReload&amp;diff=81801"/>
		<updated>2025-02-10T12:34:09Z</updated>

		<summary type="html">&lt;p&gt;Derex: Created page with &amp;quot;__NOTOC__ {{Server event}} {{Added feature/item|1.6.1|1.6.0|22909|This event is triggered when a player is reloading their weapon.}}  ==Parameters== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; int weapon, int ammoInClip, int ammo &amp;lt;/syntaxhighlight&amp;gt;  *'''weapon''':  an int representing weapon used for firing a shot. *'''ammoInClip''': an int amount of ammo left for this weapon type in clip. *'''ammo''': an int amount of ammo left for this weapon...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
{{Added feature/item|1.6.1|1.6.0|22909|This event is triggered when a [[player]] is reloading their weapon.}}&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int weapon, int ammoInClip, int ammo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*'''weapon''':  an [[int]] representing [[weapons|weapon]] used for firing a shot.&lt;br /&gt;
*'''ammoInClip''': an [[int]] amount of ammo left for this [[weapons|weapon]] type in clip.&lt;br /&gt;
*'''ammo''': an [[int]] amount of ammo left for this [[weapons|weapon]] type.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Source==  &lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] who's reloading their weapon.  &lt;br /&gt;
&lt;br /&gt;
===Canceling===  &lt;br /&gt;
If this event is [[Event system#Canceling|canceled]], then the players will not be able to reload their [[weapons|weapon]] manually by pressing R key. &lt;br /&gt;
The weapons will still reload when the '''ammoInClip''' reaches zero. Using [[SetGlitchEnabled|quickreload]] will also reload the [[weapons|weapon]].&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example will output informations when a [[player]]'s weapon is reloading.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerWeaponReload&amp;quot;, root, function(weapon, ammoInClip, ammo) &lt;br /&gt;
    outputChatBox(getPlayerName(source) .. &amp;quot; is reloading their weapon: &amp;quot;)&lt;br /&gt;
    outputChatBox(&amp;quot;Weapon: &amp;quot; .. getWeaponNameFromID(weapon))&lt;br /&gt;
    outputChatBox(&amp;quot;AmmoInClip: &amp;quot; .. ammoInClip)&lt;br /&gt;
    outputChatBox(&amp;quot;Ammo: &amp;quot; .. ammo)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>Derex</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:PairsByKeys&amp;diff=81781</id>
		<title>Talk:PairsByKeys</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:PairsByKeys&amp;diff=81781"/>
		<updated>2025-01-31T16:03:23Z</updated>

		<summary type="html">&lt;p&gt;Derex: Useful Functions authors&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Dutchman101: Mentioning author names on script examples isn't adopted practise on the MTA wiki, thanks for understanding&lt;br /&gt;
&lt;br /&gt;
Im not the author if this page, but if you check other useful functions, most of them will have an author so it should be deleted on every of these or should be restored.&lt;/div&gt;</summary>
		<author><name>Derex</name></author>
	</entry>
</feed>