<?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=AliGamer</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=AliGamer"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/AliGamer"/>
	<updated>2026-04-28T08:49:59Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientResourceFileDownload&amp;diff=68449</id>
		<title>OnClientResourceFileDownload</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientResourceFileDownload&amp;diff=68449"/>
		<updated>2021-01-27T12:15:42Z</updated>

		<summary type="html">&lt;p&gt;AliGamer: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}} &lt;br /&gt;
{{New feature/item|3.0160|1.5.8|20788|This event is triggered every time a resource file download is queued, finished or has failed.}}&lt;br /&gt;
&lt;br /&gt;
{{Warning|This event is '''NOT''' related to [[downloadFile]] and [[onClientFileDownloadComplete]]!|true}}&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
resource fileResource, string fileName, number fileSize, string state&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''fileResource:''' resource the file belongs to&lt;br /&gt;
*'''fileName:''' relative resource file path&lt;br /&gt;
*'''fileSize:''' size of the file in bytes&lt;br /&gt;
*'''state:''' possible values: &amp;lt;code&amp;gt;&amp;quot;queued&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;finished&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;failed&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the resource's root element.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
{{Needs_Example}}&lt;br /&gt;
function writeMsg (name,size,state)&lt;br /&gt;
&lt;br /&gt;
outputChatBox(&amp;quot;resource &amp;quot;..name..&amp;quot; downloading...&amp;quot;,0,200,0)&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;OnClientResourceFileDownload&amp;quot;, root, writeMsg)&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements||1.5.8-9.20788|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client resource events===&lt;br /&gt;
{{Client_resource_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>AliGamer</name></author>
	</entry>
</feed>