<?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=OpenIDUser34</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=OpenIDUser34"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/OpenIDUser34"/>
	<updated>2026-04-28T16:50:29Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Account_functions&amp;diff=29537</id>
		<title>Template:Account functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Account_functions&amp;diff=29537"/>
		<updated>2012-03-01T17:15:07Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[addAccount]]&lt;br /&gt;
*[[copyAccountData]]&lt;br /&gt;
*[[getAccount]]&lt;br /&gt;
*[[getAccountData]]&lt;br /&gt;
*[[getAccountName]]&lt;br /&gt;
{{New items|3|1.0|&lt;br /&gt;
*[[getAccountPlayer]]&lt;br /&gt;
}}&lt;br /&gt;
*[[getAccounts]]&lt;br /&gt;
*[[isGuestAccount]]&lt;br /&gt;
*[[logIn]]&lt;br /&gt;
*[[logOut]]&lt;br /&gt;
*[[removeAccount]]&lt;br /&gt;
*[[setAccountData]]&lt;br /&gt;
*[[setAccountPassword]]&lt;br /&gt;
{{Deprecated items|3|1.0|&lt;br /&gt;
*[[getAccountClient]]&lt;br /&gt;
}}&lt;br /&gt;
*[[getAllAccountData]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Functions templates]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountAllData&amp;diff=29535</id>
		<title>GetAccountAllData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountAllData&amp;diff=29535"/>
		<updated>2012-03-01T17:11:45Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: moved GetAccountAllData to GetAllAccountData: changed function name&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[GetAllAccountData]]&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAllAccountData&amp;diff=29534</id>
		<title>GetAllAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAllAccountData&amp;diff=29534"/>
		<updated>2012-03-01T17:11:45Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: moved GetAccountAllData to GetAllAccountData: changed function name&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function returns a table containing all the user data for the account provided&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getAccountAllData ( account theAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
A [[table]] containing all the user data. This table might be empty.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function printAllData ( thePlayer )&lt;br /&gt;
    local playerAccount = getPlayerAccount( thePlayer ) -- get his account&lt;br /&gt;
    if ( playerAccount ) then -- if we got the account then&lt;br /&gt;
        local data = getAccountAllData( playerAccount ) -- get data&lt;br /&gt;
        count = 0&lt;br /&gt;
        for _ in pairs(data) do count = count + 1 end -- get the count&lt;br /&gt;
        outputChatBox ( &amp;quot;table holds &amp;quot; .. count .. &amp;quot; entries&amp;quot; ) -- output number of rows&lt;br /&gt;
        if ( data ) then&lt;br /&gt;
            for k,v in pairs ( data ) do&lt;br /&gt;
                outputChatBox(k..&amp;quot;: &amp;quot;..v) -- print the key and value of each entry of data&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;getall&amp;quot;, printAllData ) -- add a command handler for command 'getall'&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPedAnimationProgress&amp;diff=29525</id>
		<title>SetPedAnimationProgress</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPedAnimationProgress&amp;diff=29525"/>
		<updated>2012-02-28T23:09:36Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
Sets the current animation progress of a player or ped.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setPedAnimationProgress ( ped thePed [, string anim, float progress] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed:''' the player or ped you want to change animation progress.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''anim:''' the animation name currently applied to ped, if not supplied, the animation will stop&lt;br /&gt;
*'''progress:''' current animation progress you want to apply, value from 0.0 to 1.0, if not supplied will default to 0.0&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example creates a ped, apply animation to it, and &amp;quot;freeze&amp;quot; the animation at half of overall animation time.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function animRender( ped1 )&lt;br /&gt;
        setPedAnimationProgress(ped1, &amp;quot;M_SMKSTND_LOOP&amp;quot;, 0.5)&lt;br /&gt;
        setTimer ( animRender, 50, 1, ped1 )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function makePed()&lt;br /&gt;
    local ped1 = createPed(56, 1, 1, 4)&lt;br /&gt;
    setPedAnimation( ped1, &amp;quot;SMOKING&amp;quot;, &amp;quot;M_SMKSTND_LOOP&amp;quot;)&lt;br /&gt;
    setTimer ( animRender, 50, 1, ped1 )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;makemyped&amp;quot;, makePed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped_functions}}&lt;br /&gt;
[[ru:setPedAnimationProgress]]&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientSoundStopped&amp;diff=29512</id>
		<title>OnClientSoundStopped</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientSoundStopped&amp;diff=29512"/>
		<updated>2012-02-28T13:37:38Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered when a '''sound''' is stopped.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string reason&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''reason''': the reason the '''sound''' was stopped, can be &amp;quot;finished&amp;quot;, &amp;quot;paused&amp;quot; or &amp;quot;destroyed&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[Element/Sound|sound's element]].&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example outputs the reason the sound stopped.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onSoundStopped ( reason )&lt;br /&gt;
    if ( reason == &amp;quot;destroyed&amp;quot; ) then&lt;br /&gt;
        outputChatBox ( &amp;quot;sound destroyed&amp;quot; )&lt;br /&gt;
    elseif ( reason == &amp;quot;finished&amp;quot; ) then&lt;br /&gt;
        outputChatBox ( &amp;quot;end of sound&amp;quot; )&lt;br /&gt;
    elseif ( reason == &amp;quot;paused&amp;quot; ) then&lt;br /&gt;
        outputChatBox ( &amp;quot;sound paused&amp;quot; )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientSoundStopped&amp;quot;, getRootElement(), onSoundStopped )&lt;br /&gt;
);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client sound events===&lt;br /&gt;
{{Sound_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientSoundStarted&amp;diff=29511</id>
		<title>OnClientSoundStarted</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientSoundStarted&amp;diff=29511"/>
		<updated>2012-02-28T13:35:09Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered when a '''sound''' is started.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string reason&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''reason''': the reason the '''sound''' was started, can be &amp;quot;play&amp;quot; or &amp;quot;resumed&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[Element/Sound|sound's element]].&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example outputs the reason the sound started .&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onSoundStarted ( reason )&lt;br /&gt;
    if ( reason == &amp;quot;play&amp;quot; ) then&lt;br /&gt;
        outputChatBox ( &amp;quot;sound started&amp;quot; )&lt;br /&gt;
    elseif ( reason == &amp;quot;resumed&amp;quot; ) then&lt;br /&gt;
        outputChatBox ( &amp;quot;sound resumed&amp;quot; )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientSoundStarted&amp;quot;, getRootElement(), onSoundStarted )&lt;br /&gt;
);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client sound events===&lt;br /&gt;
{{Sound_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientSoundStarted&amp;diff=29510</id>
		<title>OnClientSoundStarted</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientSoundStarted&amp;diff=29510"/>
		<updated>2012-02-28T13:34:29Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered when a ''sound''' is started.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string reason&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''reason''': the reason the '''sound''' was started, can be &amp;quot;play&amp;quot; or &amp;quot;resumed&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[Element/Sound|sound's element]].&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example outputs the reason the sound started .&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onSoundStarted ( reason )&lt;br /&gt;
    if ( reason == &amp;quot;play&amp;quot; ) then&lt;br /&gt;
        outputChatBox ( &amp;quot;sound started&amp;quot; )&lt;br /&gt;
    elseif ( reason == &amp;quot;resumed&amp;quot; ) then&lt;br /&gt;
        outputChatBox ( &amp;quot;sound resumed&amp;quot; )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientSoundStarted&amp;quot;, getRootElement(), onSoundStarted )&lt;br /&gt;
);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client sound events===&lt;br /&gt;
{{Sound_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientFileDownloadComplete&amp;diff=29499</id>
		<title>OnClientFileDownloadComplete</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientFileDownloadComplete&amp;diff=29499"/>
		<updated>2012-02-27T17:22:00Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered when a file has been downloaded after [[downloadFile]] has been successfully called.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string fileName, bool success&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''fileName''': the file downloaded.&lt;br /&gt;
*'''success''': whether successful or not.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[root element]] of the resource that called [[downloadFile]].&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example plays a sound if it was downloaded successfully&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onDownloadFinish ( file, success )&lt;br /&gt;
    if ( source == resourceRoot ) then                            -- if the file relates to this resource&lt;br /&gt;
        if ( success ) then                                       -- if the file was downloaded successfully&lt;br /&gt;
            if ( file == &amp;quot;test.mp3&amp;quot; ) then                        -- if the file name is what we were expecting&lt;br /&gt;
                currentTrack = playSound ( &amp;quot;test.mp3&amp;quot; )&lt;br /&gt;
            end&lt;br /&gt;
        else                                                      -- if the file wasn't downloaded successfully&lt;br /&gt;
            if ( file == &amp;quot;test.mp3&amp;quot; ) then&lt;br /&gt;
                outputChatBox ( &amp;quot;test.mp3 failed to download&amp;quot; )&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientFileDownloadComplete&amp;quot;, getRootElement(), onDownloadFinish )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Other client events===&lt;br /&gt;
{{Client_other_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientFileDownloadComplete&amp;diff=29498</id>
		<title>OnClientFileDownloadComplete</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientFileDownloadComplete&amp;diff=29498"/>
		<updated>2012-02-27T17:16:38Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered when a file has been downloaded after [[downloadFile]] has been successfully called.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string fileName, bool success&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''fileName''': the file downloaded.&lt;br /&gt;
*'''success''': whether successful or not.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[root element]] of the resource that called [[downloadFile]].&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example plays a sound if it was downloaded successfully&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onDownloadFinish ( file, success )&lt;br /&gt;
	if ( source == resourceRoot ) then&lt;br /&gt;
		if ( success ) then&lt;br /&gt;
			if ( file == &amp;quot;test.mp3&amp;quot; ) then&lt;br /&gt;
				currentTrack = playSound ( &amp;quot;test.mp3&amp;quot; )&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			if ( file == &amp;quot;test.mp3&amp;quot; ) then&lt;br /&gt;
				outputChatBox ( &amp;quot;test.mp3 failed to download&amp;quot; )&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientFileDownloadComplete&amp;quot;, getRootElement(), onDownloadFinish )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Other client events===&lt;br /&gt;
{{Client_other_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientFileDownloadComplete&amp;diff=29462</id>
		<title>OnClientFileDownloadComplete</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientFileDownloadComplete&amp;diff=29462"/>
		<updated>2012-02-22T22:13:14Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}} &lt;br /&gt;
&lt;br /&gt;
my test example until I get a chance to document properly&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
currentTrack = nil&lt;br /&gt;
function onStart ( )&lt;br /&gt;
	downloadFile ( &amp;quot;test.mp3&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, getRootElement(), onStart )&lt;br /&gt;
&lt;br /&gt;
function onDownloadFinish ( file, success )&lt;br /&gt;
	if ( success ) then&lt;br /&gt;
		if ( file == &amp;quot;test.mp3&amp;quot; ) then&lt;br /&gt;
			currentTrack = playSound ( &amp;quot;test.mp3&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		if ( file == &amp;quot;test.mp3&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;test.mp3 failed to download&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientFileDownloadComplete&amp;quot;, getRootElement(), onDownloadFinish )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function onSoundStopped ( reason )&lt;br /&gt;
	if ( source == currentTrack ) then&lt;br /&gt;
		if ( reason == &amp;quot;destroyed&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;sound destroyed&amp;quot; )&lt;br /&gt;
		elseif ( reason == &amp;quot;finished&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;end of sound&amp;quot; )&lt;br /&gt;
		elseif ( reason == &amp;quot;paused&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;sound paused&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientSoundStopped&amp;quot;, getRootElement(), onSoundStopped )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function onSoundStarted ( reason )&lt;br /&gt;
	if ( reason == &amp;quot;play&amp;quot; ) then&lt;br /&gt;
		outputChatBox ( &amp;quot;sound started&amp;quot; )&lt;br /&gt;
	elseif ( reason == &amp;quot;resumed&amp;quot; ) then&lt;br /&gt;
		outputChatBox ( &amp;quot;sound resumed&amp;quot; )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientSoundStarted&amp;quot;, getRootElement(), onSoundStarted )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function stopSoundFunction ()&lt;br /&gt;
	stopSound ( currentTrack )&lt;br /&gt;
end    &lt;br /&gt;
addCommandHandler ( &amp;quot;stop1&amp;quot;, stopSoundFunction )&lt;br /&gt;
&lt;br /&gt;
function songPause()&lt;br /&gt;
    local pause = isSoundPaused ( currentTrack )&lt;br /&gt;
    if ( pause == true ) then&lt;br /&gt;
	setSoundPaused ( currentTrack, false )&lt;br /&gt;
    else&lt;br /&gt;
	setSoundPaused ( currentTrack, true )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;pause&amp;quot;, songPause)&lt;br /&gt;
&lt;br /&gt;
function startSoundFunction ()&lt;br /&gt;
	currentTrack = playSound ( &amp;quot;test.mp3&amp;quot; )&lt;br /&gt;
end    &lt;br /&gt;
addCommandHandler ( &amp;quot;start1&amp;quot;, startSoundFunction )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Other client events===&lt;br /&gt;
{{Client_other_events}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientFileDownloadComplete&amp;diff=29461</id>
		<title>OnClientFileDownloadComplete</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientFileDownloadComplete&amp;diff=29461"/>
		<updated>2012-02-22T22:07:42Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}} &lt;br /&gt;
&lt;br /&gt;
my test example until I get a chance to document properly&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
currentTrack = nil&lt;br /&gt;
function onStart ( )&lt;br /&gt;
	downloadFile ( &amp;quot;test.mp3&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, getRootElement(), onStart )&lt;br /&gt;
&lt;br /&gt;
function onDownloadFinish ( file, success )&lt;br /&gt;
	if ( success ) then&lt;br /&gt;
		if ( file == &amp;quot;test.mp3&amp;quot; ) then&lt;br /&gt;
			currentTrack = playSound ( &amp;quot;test.mp3&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		if ( file == &amp;quot;test.mp3&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;test.mp3 failed to download&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientFileDownloadComplete&amp;quot;, getRootElement(), onDownloadFinish )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function onSoundStopped ( reason )&lt;br /&gt;
	if ( source == currentTrack ) then&lt;br /&gt;
		if ( reason == &amp;quot;destroyed&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;sound destroyed&amp;quot; )&lt;br /&gt;
		elseif ( reason == &amp;quot;finished&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;end of sound&amp;quot; )&lt;br /&gt;
		elseif ( reason == &amp;quot;paused&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;sound paused&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientSoundStopped&amp;quot;, getRootElement(), onSoundStopped )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function onSoundStarted ( reason )&lt;br /&gt;
	if ( source == currentTrack ) then&lt;br /&gt;
		if ( reason == &amp;quot;play&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;sound started&amp;quot; )&lt;br /&gt;
		elseif ( reason == &amp;quot;resumed&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;sound resumed&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientSoundStarted&amp;quot;, getRootElement(), onSoundStarted )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function stopSoundFunction ()&lt;br /&gt;
	stopSound ( currentTrack )&lt;br /&gt;
end    &lt;br /&gt;
addCommandHandler ( &amp;quot;stop1&amp;quot;, stopSoundFunction )&lt;br /&gt;
&lt;br /&gt;
function songPause()&lt;br /&gt;
    local pause = isSoundPaused ( currentTrack )&lt;br /&gt;
    if ( pause == true ) then&lt;br /&gt;
	setSoundPaused ( currentTrack, false )&lt;br /&gt;
    else&lt;br /&gt;
	setSoundPaused ( currentTrack, true )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;pause&amp;quot;, songPause)&lt;br /&gt;
&lt;br /&gt;
function startSoundFunction ()&lt;br /&gt;
	currentTrack = playSound ( &amp;quot;test.mp3&amp;quot; )&lt;br /&gt;
end    &lt;br /&gt;
addCommandHandler ( &amp;quot;start1&amp;quot;, startSoundFunction )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Other client events===&lt;br /&gt;
{{Client_other_events}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientSoundStopped&amp;diff=29460</id>
		<title>OnClientSoundStopped</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientSoundStopped&amp;diff=29460"/>
		<updated>2012-02-22T22:06:01Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: Created page with &amp;quot;{{Client_Function}}  test example until properly documented  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; function onSoundStopped ( reason ) 	if ( source == currentTrack ) then 		if ( reason == &amp;quot;destroyed&amp;quot; ) t...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client_Function}}&lt;br /&gt;
&lt;br /&gt;
test example until properly documented&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onSoundStopped ( reason )&lt;br /&gt;
	if ( source == currentTrack ) then&lt;br /&gt;
		if ( reason == &amp;quot;destroyed&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;sound destroyed&amp;quot; )&lt;br /&gt;
		elseif ( reason == &amp;quot;finished&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;end of sound&amp;quot; )&lt;br /&gt;
		elseif ( reason == &amp;quot;paused&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;sound paused&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientSoundStopped&amp;quot;, getRootElement(), onSoundStopped )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client sound events===&lt;br /&gt;
{{Sound_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientSoundStarted&amp;diff=29459</id>
		<title>OnClientSoundStarted</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientSoundStarted&amp;diff=29459"/>
		<updated>2012-02-22T22:05:53Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: Created page with &amp;quot;{{Client_Function}}  test example until properly documented  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; function onSoundStarted ( reason ) 	if ( source == currentTrack ) then 		if ( reason == &amp;quot;play&amp;quot; ) then 	...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client_Function}}&lt;br /&gt;
&lt;br /&gt;
test example until properly documented&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onSoundStarted ( reason )&lt;br /&gt;
	if ( source == currentTrack ) then&lt;br /&gt;
		if ( reason == &amp;quot;play&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;sound started&amp;quot; )&lt;br /&gt;
		elseif ( reason == &amp;quot;resumed&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;sound resumed&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientSoundStarted&amp;quot;, getRootElement(), onSoundStarted )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client sound events===&lt;br /&gt;
{{Sound_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientSoundChangedMeta&amp;diff=29458</id>
		<title>OnClientSoundChangedMeta</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientSoundChangedMeta&amp;diff=29458"/>
		<updated>2012-02-22T22:05:47Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
This event is triggered when a sound's meta tags have been modified.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string streamTitle&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''streamTitle''': The title of a specific stream&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[sound]] of which the meta tags have just been modified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client sound events===&lt;br /&gt;
{{Sound_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Sound_events&amp;diff=29457</id>
		<title>Template:Sound events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Sound_events&amp;diff=29457"/>
		<updated>2012-02-22T22:03:50Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{New items|3.0110|1.1|&lt;br /&gt;
* [[onClientSoundChangedMeta]]&lt;br /&gt;
* [[onClientSoundFinishedDownload]]&lt;br /&gt;
* [[onClientSoundStream]]&lt;br /&gt;
}}&lt;br /&gt;
{{New items|3.0152|1.3.1|&lt;br /&gt;
* [[onClientSoundStarted]]&lt;br /&gt;
* [[onClientSoundStopped]]&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>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DownloadFile&amp;diff=29456</id>
		<title>DownloadFile</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DownloadFile&amp;diff=29456"/>
		<updated>2012-02-22T19:26:19Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function downloads a file from the HTTP server. This can only be used on files on the HTTP server associated with the MTA server and will only download files from within the folder of the resource that is calling it. The '''file''' should also be included in meta.xml with the '''download''' attribute set to &amp;quot;false&amp;quot;, see [[meta.xml]] for more details. If the file has been previously downloaded and the CRC matches, the file will not be downloaded again but [[onClientFileDownloadComplete]] will still run.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool downloadFile ( string fileName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''fileName''': A string referencing the name of the file to download&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if file download has been queued, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
'''Example 1:''' This client side event downloads a file when the resource has started.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- the function is called, since the local player never changes)&lt;br /&gt;
function onStart ( )&lt;br /&gt;
    downloadFile ( &amp;quot;test.txt&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, getRootElement(), onStart )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_utility_functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientFileDownloadComplete&amp;diff=29452</id>
		<title>OnClientFileDownloadComplete</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientFileDownloadComplete&amp;diff=29452"/>
		<updated>2012-02-22T11:29:51Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}} &lt;br /&gt;
&lt;br /&gt;
my test example until I get a chance to document properly&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onStart ( )&lt;br /&gt;
	outputChatBox ( &amp;quot;downloading test.mp3&amp;quot; )&lt;br /&gt;
	downloadFile ( &amp;quot;test.mp3&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, getRootElement(), onStart )&lt;br /&gt;
&lt;br /&gt;
function onDownloadFinish ( file, success )&lt;br /&gt;
	if ( success ) then&lt;br /&gt;
		if ( file == &amp;quot;test.mp3&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;test.mp3 downloaded successfully&amp;quot; )&lt;br /&gt;
			playSound ( &amp;quot;test.mp3&amp;quot; )&lt;br /&gt;
			outputChatBox ( &amp;quot;playing test.mp3&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		if ( file == &amp;quot;test.mp3&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;test.mp3 failed to download&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientFileDownloadComplete&amp;quot;, getRootElement(), onDownloadFinish )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Other client events===&lt;br /&gt;
{{Client_other_events}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnFileDownloadComplete&amp;diff=29451</id>
		<title>OnFileDownloadComplete</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnFileDownloadComplete&amp;diff=29451"/>
		<updated>2012-02-22T11:24:20Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnFileDownloadComplete&amp;diff=29450</id>
		<title>OnFileDownloadComplete</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnFileDownloadComplete&amp;diff=29450"/>
		<updated>2012-02-22T11:23:51Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: moved OnFileDownloadComplete to OnClientFileDownloadComplete&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[OnClientFileDownloadComplete]]&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientFileDownloadComplete&amp;diff=29449</id>
		<title>OnClientFileDownloadComplete</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientFileDownloadComplete&amp;diff=29449"/>
		<updated>2012-02-22T11:23:51Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: moved OnFileDownloadComplete to OnClientFileDownloadComplete&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}} &lt;br /&gt;
&lt;br /&gt;
my test example until I get a chance to document properly&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onStart ( )&lt;br /&gt;
	outputChatBox ( &amp;quot;downloading test.mp3&amp;quot; )&lt;br /&gt;
	downloadFile ( &amp;quot;test.mp3&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, getRootElement(), onStart )&lt;br /&gt;
&lt;br /&gt;
function onDownloadFinish ( file, success )&lt;br /&gt;
	if ( success ) then&lt;br /&gt;
		if ( file == &amp;quot;test.mp3&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;test.mp3 downloaded successfully&amp;quot; )&lt;br /&gt;
			playSound ( &amp;quot;test.mp3&amp;quot; )&lt;br /&gt;
			outputChatBox ( &amp;quot;playing test.mp3&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		if ( file == &amp;quot;test.mp3&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;test.mp3 failed to download&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onFileDownloadComplete&amp;quot;, getRootElement(), onDownloadFinish )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Other client events===&lt;br /&gt;
{{Client_other_events}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_other_events&amp;diff=29448</id>
		<title>Template:Client other events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_other_events&amp;diff=29448"/>
		<updated>2012-02-22T11:23:32Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[onClientConsole]]&lt;br /&gt;
{{New items|3.0110|1.1|&lt;br /&gt;
*[[onClientDebugMessage]]&lt;br /&gt;
*[[onClientHUDRender]]&lt;br /&gt;
*[[onClientMinimize]]&lt;br /&gt;
*[[onClientRestore]]&lt;br /&gt;
}}&lt;br /&gt;
*[[onClientRender]]&lt;br /&gt;
*[[onClientExplosion]]&lt;br /&gt;
*[[onClientChatMessage]]&lt;br /&gt;
*[[onClientPreRender]]&lt;br /&gt;
{{New items|3.0151|1.3.1|&lt;br /&gt;
*[[onClientFileDownloadComplete]]&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>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_utility_functions&amp;diff=29447</id>
		<title>Template:Client utility functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_utility_functions&amp;diff=29447"/>
		<updated>2012-02-22T11:21:20Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[getDistanceBetweenPoints2D]]&lt;br /&gt;
* [[getDistanceBetweenPoints3D]]&lt;br /&gt;
* [[getEasingValue]]&lt;br /&gt;
* [[interpolateBetween]]&lt;br /&gt;
* [[getRealTime]]&lt;br /&gt;
* [[getTickCount]]&lt;br /&gt;
* [[getTimerDetails]]&lt;br /&gt;
* [[getNetworkStats]]&lt;br /&gt;
* [[setClipboard]]&lt;br /&gt;
* [[getTimers]]&lt;br /&gt;
* [[gettok]]&lt;br /&gt;
* [[killTimer]]&lt;br /&gt;
* [[resetTimer]]&lt;br /&gt;
* [[setTimer]]&lt;br /&gt;
* [[split]]&lt;br /&gt;
* [[getVersion]]&lt;br /&gt;
* [[isTimer]]&lt;br /&gt;
* [[md5]]&lt;br /&gt;
* [[tocolor]]&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
* [[ref]]&lt;br /&gt;
* [[deref]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* [[utfChar]]&lt;br /&gt;
* [[utfCode]]&lt;br /&gt;
* [[utfLen]]&lt;br /&gt;
* [[utfSeek]]&lt;br /&gt;
* [[utfSub]]&lt;br /&gt;
{{New items|3.0120|1.2|&lt;br /&gt;
* [[toJSON]]&lt;br /&gt;
* [[fromJSON]]&lt;br /&gt;
* [[setDevelopmentMode]]&lt;br /&gt;
* [[getDevelopmentMode]]&lt;br /&gt;
}}&lt;br /&gt;
{{New items|3.0151|1.3.1|&lt;br /&gt;
* [[downloadFile]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientFileDownloadComplete&amp;diff=29446</id>
		<title>OnClientFileDownloadComplete</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientFileDownloadComplete&amp;diff=29446"/>
		<updated>2012-02-22T11:20:37Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}} &lt;br /&gt;
&lt;br /&gt;
my test example until I get a chance to document properly&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onStart ( )&lt;br /&gt;
	outputChatBox ( &amp;quot;downloading test.mp3&amp;quot; )&lt;br /&gt;
	downloadFile ( &amp;quot;test.mp3&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, getRootElement(), onStart )&lt;br /&gt;
&lt;br /&gt;
function onDownloadFinish ( file, success )&lt;br /&gt;
	if ( success ) then&lt;br /&gt;
		if ( file == &amp;quot;test.mp3&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;test.mp3 downloaded successfully&amp;quot; )&lt;br /&gt;
			playSound ( &amp;quot;test.mp3&amp;quot; )&lt;br /&gt;
			outputChatBox ( &amp;quot;playing test.mp3&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		if ( file == &amp;quot;test.mp3&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;test.mp3 failed to download&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onFileDownloadComplete&amp;quot;, getRootElement(), onDownloadFinish )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Other client events===&lt;br /&gt;
{{Client_other_events}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_other_events&amp;diff=29445</id>
		<title>Template:Client other events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_other_events&amp;diff=29445"/>
		<updated>2012-02-22T11:20:23Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[onClientConsole]]&lt;br /&gt;
{{New items|3.0110|1.1|&lt;br /&gt;
*[[onClientDebugMessage]]&lt;br /&gt;
*[[onClientHUDRender]]&lt;br /&gt;
*[[onClientMinimize]]&lt;br /&gt;
*[[onClientRestore]]&lt;br /&gt;
}}&lt;br /&gt;
*[[onClientRender]]&lt;br /&gt;
*[[onClientExplosion]]&lt;br /&gt;
*[[onClientChatMessage]]&lt;br /&gt;
*[[onClientPreRender]]&lt;br /&gt;
{{New items|3.0151|1.3.1|&lt;br /&gt;
*[[onFileDownloadComplete]]&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>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_other_events&amp;diff=29444</id>
		<title>Template:Client other events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_other_events&amp;diff=29444"/>
		<updated>2012-02-22T11:17:03Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[onClientConsole]]&lt;br /&gt;
{{New items|3.0110|1.1|&lt;br /&gt;
*[[onClientDebugMessage]]&lt;br /&gt;
*[[onClientHUDRender]]&lt;br /&gt;
*[[onClientMinimize]]&lt;br /&gt;
*[[onClientRestore]]&lt;br /&gt;
}}&lt;br /&gt;
*[[onClientRender]]&lt;br /&gt;
*[[onClientExplosion]]&lt;br /&gt;
*[[onClientChatMessage]]&lt;br /&gt;
*[[onClientPreRender]]&lt;br /&gt;
*[[onFileDownloadComplete]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Events templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Admin_functions&amp;diff=29443</id>
		<title>Template:Admin functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Admin_functions&amp;diff=29443"/>
		<updated>2012-02-22T11:15:56Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[banPlayer]]&lt;br /&gt;
*[[kickPlayer]]&lt;br /&gt;
{{New items|3|1.0|&lt;br /&gt;
*[[addBan]]&lt;br /&gt;
*[[getBanAdmin]]&lt;br /&gt;
*[[getBanIP]]&lt;br /&gt;
*[[getBanNick]]&lt;br /&gt;
*[[getBanReason]]&lt;br /&gt;
*[[getBans]]&lt;br /&gt;
*[[getBanSerial]]&lt;br /&gt;
*[[getBanTime]]&lt;br /&gt;
*[[getBanUsername]]&lt;br /&gt;
*[[getUnbanTime]]&lt;br /&gt;
*[[removeBan]]&lt;br /&gt;
}}&lt;br /&gt;
{{Deprecated items|3|1.0|&lt;br /&gt;
*[[banIP]]&lt;br /&gt;
*[[banSerial]]&lt;br /&gt;
*[[getBansXML]]&lt;br /&gt;
*[[unbanIP]]&lt;br /&gt;
*[[unbanSerial]]&lt;br /&gt;
}}&lt;br /&gt;
*[[reloadBans]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Admin_functions&amp;diff=29442</id>
		<title>Template:Admin functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Admin_functions&amp;diff=29442"/>
		<updated>2012-02-22T11:15:41Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[banPlayer]]&lt;br /&gt;
*[[kickPlayer]]&lt;br /&gt;
{{New items|3|1.0|&lt;br /&gt;
*[[addBan]]&lt;br /&gt;
*[[getBanAdmin]]&lt;br /&gt;
*[[getBanIP]]&lt;br /&gt;
*[[getBanNick]]&lt;br /&gt;
*[[getBanReason]]&lt;br /&gt;
*[[getBans]]&lt;br /&gt;
*[[getBanSerial]]&lt;br /&gt;
*[[getBanTime]]&lt;br /&gt;
*[[getBanUsername]]&lt;br /&gt;
*[[getUnbanTime]]&lt;br /&gt;
*[[removeBan]]&lt;br /&gt;
}}&lt;br /&gt;
{{Deprecated items|3|1.0|&lt;br /&gt;
*[[banIP]]&lt;br /&gt;
*[[banSerial]]&lt;br /&gt;
*[[getBansXML]]&lt;br /&gt;
*[[unbanIP]]&lt;br /&gt;
*[[unbanSerial]]&lt;br /&gt;
}}&lt;br /&gt;
{{New items|4|1.3.1|&lt;br /&gt;
*[[reloadBans]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Admin_functions&amp;diff=29441</id>
		<title>Template:Admin functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Admin_functions&amp;diff=29441"/>
		<updated>2012-02-22T11:12:47Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[banPlayer]]&lt;br /&gt;
*[[kickPlayer]]&lt;br /&gt;
{{New items|3|1.0|&lt;br /&gt;
*[[addBan]]&lt;br /&gt;
*[[getBanAdmin]]&lt;br /&gt;
*[[getBanIP]]&lt;br /&gt;
*[[getBanNick]]&lt;br /&gt;
*[[getBanReason]]&lt;br /&gt;
*[[getBans]]&lt;br /&gt;
*[[getBanSerial]]&lt;br /&gt;
*[[getBanTime]]&lt;br /&gt;
*[[getBanUsername]]&lt;br /&gt;
*[[getUnbanTime]]&lt;br /&gt;
*[[removeBan]]&lt;br /&gt;
}}&lt;br /&gt;
{{Deprecated items|3|1.0|&lt;br /&gt;
*[[banIP]]&lt;br /&gt;
*[[banSerial]]&lt;br /&gt;
*[[getBansXML]]&lt;br /&gt;
*[[unbanIP]]&lt;br /&gt;
*[[unbanSerial]]&lt;br /&gt;
}}&lt;br /&gt;
{{New items|3|1.3.1|&lt;br /&gt;
*[[reloadBans]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Admin_functions&amp;diff=29440</id>
		<title>Template:Admin functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Admin_functions&amp;diff=29440"/>
		<updated>2012-02-22T11:11:59Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[banPlayer]]&lt;br /&gt;
*[[kickPlayer]]&lt;br /&gt;
{{New items|3|1.0|&lt;br /&gt;
*[[addBan]]&lt;br /&gt;
*[[getBanAdmin]]&lt;br /&gt;
*[[getBanIP]]&lt;br /&gt;
*[[getBanNick]]&lt;br /&gt;
*[[getBanReason]]&lt;br /&gt;
*[[getBans]]&lt;br /&gt;
*[[getBanSerial]]&lt;br /&gt;
*[[getBanTime]]&lt;br /&gt;
*[[getBanUsername]]&lt;br /&gt;
*[[getUnbanTime]]&lt;br /&gt;
*[[removeBan]]&lt;br /&gt;
}}&lt;br /&gt;
{{Deprecated items|3|1.0|&lt;br /&gt;
*[[banIP]]&lt;br /&gt;
*[[banSerial]]&lt;br /&gt;
*[[getBansXML]]&lt;br /&gt;
*[[unbanIP]]&lt;br /&gt;
*[[unbanSerial]]&lt;br /&gt;
}}&lt;br /&gt;
*[[reloadBans]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_utility_functions&amp;diff=29439</id>
		<title>Template:Client utility functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_utility_functions&amp;diff=29439"/>
		<updated>2012-02-22T11:11:18Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[getDistanceBetweenPoints2D]]&lt;br /&gt;
* [[getDistanceBetweenPoints3D]]&lt;br /&gt;
* [[getEasingValue]]&lt;br /&gt;
* [[interpolateBetween]]&lt;br /&gt;
* [[getRealTime]]&lt;br /&gt;
* [[getTickCount]]&lt;br /&gt;
* [[getTimerDetails]]&lt;br /&gt;
* [[getNetworkStats]]&lt;br /&gt;
* [[setClipboard]]&lt;br /&gt;
* [[getTimers]]&lt;br /&gt;
* [[gettok]]&lt;br /&gt;
* [[killTimer]]&lt;br /&gt;
* [[resetTimer]]&lt;br /&gt;
* [[setTimer]]&lt;br /&gt;
* [[split]]&lt;br /&gt;
* [[getVersion]]&lt;br /&gt;
* [[isTimer]]&lt;br /&gt;
* [[md5]]&lt;br /&gt;
* [[tocolor]]&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
* [[ref]]&lt;br /&gt;
* [[deref]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* [[utfChar]]&lt;br /&gt;
* [[utfCode]]&lt;br /&gt;
* [[utfLen]]&lt;br /&gt;
* [[utfSeek]]&lt;br /&gt;
* [[utfSub]]&lt;br /&gt;
{{New items|3.0120|1.2|&lt;br /&gt;
* [[toJSON]]&lt;br /&gt;
* [[fromJSON]]&lt;br /&gt;
* [[setDevelopmentMode]]&lt;br /&gt;
* [[getDevelopmentMode]]&lt;br /&gt;
}}&lt;br /&gt;
* [[downloadFile]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Utility_functions&amp;diff=29438</id>
		<title>Template:Utility functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Utility_functions&amp;diff=29438"/>
		<updated>2012-02-22T11:10:48Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[getColorFromString]]&lt;br /&gt;
*[[getDistanceBetweenPoints2D]]&lt;br /&gt;
*[[getDistanceBetweenPoints3D]]&lt;br /&gt;
{{New items|3.0110|1.1|&lt;br /&gt;
* [[getEasingValue]]&lt;br /&gt;
* [[interpolateBetween]]&lt;br /&gt;
* [[getPerformanceStats]]&lt;br /&gt;
* [[getNetworkStats]]&lt;br /&gt;
* [[getServerConfigSetting]]&lt;br /&gt;
* [[setServerConfigSetting]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*[[getPacketInfo]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
*[[getRealTime]]&lt;br /&gt;
*[[getTickCount]]&lt;br /&gt;
*[[getTimerDetails]]&lt;br /&gt;
*[[getTimers]]&lt;br /&gt;
*[[gettok]]&lt;br /&gt;
*[[killTimer]]&lt;br /&gt;
*[[resetTimer]]&lt;br /&gt;
*[[setTimer]]&lt;br /&gt;
*[[split]]&lt;br /&gt;
*[[isTimer]]&lt;br /&gt;
*[[md5]]&lt;br /&gt;
{{New items|3.0110|1.1|&lt;br /&gt;
* [[utfChar]]&lt;br /&gt;
* [[utfCode]]&lt;br /&gt;
* [[utfLen]]&lt;br /&gt;
* [[utfSeek]]&lt;br /&gt;
* [[utfSub]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Utility_functions&amp;diff=29437</id>
		<title>Template:Utility functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Utility_functions&amp;diff=29437"/>
		<updated>2012-02-22T11:10:02Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[getColorFromString]]&lt;br /&gt;
*[[getDistanceBetweenPoints2D]]&lt;br /&gt;
*[[getDistanceBetweenPoints3D]]&lt;br /&gt;
{{New items|3.0110|1.1|&lt;br /&gt;
* [[getEasingValue]]&lt;br /&gt;
* [[interpolateBetween]]&lt;br /&gt;
* [[getPerformanceStats]]&lt;br /&gt;
* [[getNetworkStats]]&lt;br /&gt;
* [[getServerConfigSetting]]&lt;br /&gt;
* [[setServerConfigSetting]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
*[[getPacketInfo]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
*[[getRealTime]]&lt;br /&gt;
*[[getTickCount]]&lt;br /&gt;
*[[getTimerDetails]]&lt;br /&gt;
*[[getTimers]]&lt;br /&gt;
*[[gettok]]&lt;br /&gt;
*[[killTimer]]&lt;br /&gt;
*[[resetTimer]]&lt;br /&gt;
*[[setTimer]]&lt;br /&gt;
*[[split]]&lt;br /&gt;
*[[isTimer]]&lt;br /&gt;
*[[md5]]&lt;br /&gt;
{{New items|3.0110|1.1|&lt;br /&gt;
* [[utfChar]]&lt;br /&gt;
* [[utfCode]]&lt;br /&gt;
* [[utfLen]]&lt;br /&gt;
* [[utfSeek]]&lt;br /&gt;
* [[utfSub]]&lt;br /&gt;
}}&lt;br /&gt;
*[[downloadFile]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Account_functions&amp;diff=29436</id>
		<title>Template:Account functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Account_functions&amp;diff=29436"/>
		<updated>2012-02-22T11:09:08Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[addAccount]]&lt;br /&gt;
*[[copyAccountData]]&lt;br /&gt;
*[[getAccount]]&lt;br /&gt;
*[[getAccountData]]&lt;br /&gt;
*[[getAccountName]]&lt;br /&gt;
{{New items|3|1.0|&lt;br /&gt;
*[[getAccountPlayer]]&lt;br /&gt;
}}&lt;br /&gt;
*[[getAccounts]]&lt;br /&gt;
*[[isGuestAccount]]&lt;br /&gt;
*[[logIn]]&lt;br /&gt;
*[[logOut]]&lt;br /&gt;
*[[removeAccount]]&lt;br /&gt;
*[[setAccountData]]&lt;br /&gt;
*[[setAccountPassword]]&lt;br /&gt;
{{Deprecated items|3|1.0|&lt;br /&gt;
*[[getAccountClient]]&lt;br /&gt;
}}&lt;br /&gt;
*[[getAccountAllData]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Functions templates]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientFileDownloadComplete&amp;diff=29435</id>
		<title>OnClientFileDownloadComplete</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientFileDownloadComplete&amp;diff=29435"/>
		<updated>2012-02-21T23:31:59Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: Created page with &amp;quot;my test example until I get a chance to document properly  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; function onStart ( ) 	outputChatBox ( &amp;quot;downloading test.mp3&amp;quot; ) 	downloadFile ( &amp;quot;test.mp3&amp;quot; ) end addEventH...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;my test example until I get a chance to document properly&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onStart ( )&lt;br /&gt;
	outputChatBox ( &amp;quot;downloading test.mp3&amp;quot; )&lt;br /&gt;
	downloadFile ( &amp;quot;test.mp3&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, getRootElement(), onStart )&lt;br /&gt;
&lt;br /&gt;
function onDownloadFinish ( file, success )&lt;br /&gt;
	if ( success ) then&lt;br /&gt;
		if ( file == &amp;quot;test.mp3&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;test.mp3 downloaded successfully&amp;quot; )&lt;br /&gt;
			playSound ( &amp;quot;test.mp3&amp;quot; )&lt;br /&gt;
			outputChatBox ( &amp;quot;playing test.mp3&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		if ( file == &amp;quot;test.mp3&amp;quot; ) then&lt;br /&gt;
			outputChatBox ( &amp;quot;test.mp3 failed to download&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onFileDownloadComplete&amp;quot;, getRootElement(), onDownloadFinish )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DownloadFile&amp;diff=29423</id>
		<title>DownloadFile</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DownloadFile&amp;diff=29423"/>
		<updated>2012-02-19T17:18:51Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: Created page with &amp;quot;{{Client function}} __NOTOC__ This function downloads a file from the HTTP server. This can only be used on files on the HTTP server associated with the MTA server and will only ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function downloads a file from the HTTP server. This can only be used on files on the HTTP server associated with the MTA server and will only download files from within the folder of the resource that is calling it. The '''file''' should also be included in meta.xml with the '''download''' attribute set to &amp;quot;false&amp;quot;&lt;br /&gt;
&lt;br /&gt;
'''Will be in 1.4'''&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool downloadFile ( string fileName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''fileName''': A string referencing the name of the file to download&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if file download has been queued, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
'''Example 1:''' This client side event downloads a file when the resource has started.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- the function is called, since the local player never changes)&lt;br /&gt;
function onStart ( )&lt;br /&gt;
    downloadFile ( &amp;quot;test.txt&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, getRootElement(), onStart )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_utility_functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetKeyState&amp;diff=29404</id>
		<title>GetKeyState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetKeyState&amp;diff=29404"/>
		<updated>2012-02-16T23:05:11Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function determines if a certain key is pressed or not.&lt;br /&gt;
&lt;br /&gt;
'ralt' may trigger both 'ralt' and 'lctrl', this is due to AltGr&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool getKeyState ( string keyName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''keyName:''' The name of the key you're checking state of. See [[Key names]].&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the specified key is pressed, ''false'' if it isn't or if an invalid key name is passed.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This clientside example prints a message when &amp;quot;p&amp;quot; is pressed, and a different one for the &amp;quot;control+p&amp;quot; combination.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- define a function that outputs a message if control is pressed, and a different one if it isn't&lt;br /&gt;
function printMessageFunction()&lt;br /&gt;
	-- if the left or right control keys are pressed, the user has pressed the &amp;quot;control+p&amp;quot; combo&lt;br /&gt;
	if getKeyState( &amp;quot;lctrl&amp;quot; ) == true or getKeyState( &amp;quot;rctrl&amp;quot; ) == true then&lt;br /&gt;
		outputChatBox ( &amp;quot;You have pressed 'control+p'.&amp;quot; )&lt;br /&gt;
	-- if none of those were pressed, he just pressed the &amp;quot;p&amp;quot; key&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox ( &amp;quot;You have pressed 'p'.&amp;quot; )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
-- bind the &amp;quot;p&amp;quot; key to our function&lt;br /&gt;
bindKey( &amp;quot;p&amp;quot;, &amp;quot;down&amp;quot;, &amp;quot;Print message&amp;quot;, printMessageFunction )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_input_functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RemoveAccount&amp;diff=29378</id>
		<title>RemoveAccount</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RemoveAccount&amp;diff=29378"/>
		<updated>2012-02-09T15:28:22Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function is used to delete existing player accounts.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool removeAccount ( account theAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to remove&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if account was successfully removed, ''false'' if the account does not exist.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example does...&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onCmdDeregister ( playerSource, commandName )&lt;br /&gt;
	-- grab the account&lt;br /&gt;
	local sourceAccount = getPlayerAccount ( playerSource )&lt;br /&gt;
	if sourceAccount then&lt;br /&gt;
		removeAccount ( sourceAccount )&lt;br /&gt;
		outputChatBox ( &amp;quot;Account deregistered for &amp;quot; .. getPlayerName ( playerSource ) )&lt;br /&gt;
	else &lt;br /&gt;
		outputChatBox ( &amp;quot;Unable to get your account, make sure you are logged in&amp;quot;, playerSource )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
addCommandHandler(&amp;quot;deregister&amp;quot;,onCmdDeregister)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&amp;lt;!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --&amp;gt;&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Commands&amp;diff=29347</id>
		<title>Server Commands</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Commands&amp;diff=29347"/>
		<updated>2012-02-04T20:17:31Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists all built in commands that the server can process. All these commands can be entered via the server console or the client console depending upon permissions unless otherwise stated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Resource commands==&lt;br /&gt;
====checkall====&lt;br /&gt;
:&amp;lt;ins&amp;gt;Server console only&amp;lt;/ins&amp;gt;&lt;br /&gt;
:Check all resources for deprecated functions and MTA version issues&lt;br /&gt;
====info====&lt;br /&gt;
:&amp;lt;ins&amp;gt;Server console only&amp;lt;/ins&amp;gt;&lt;br /&gt;
:Usage: info ''&amp;lt;resource-name&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Get info for a resource eg: info admin&lt;br /&gt;
====list====&lt;br /&gt;
:&amp;lt;ins&amp;gt;Server console only&amp;lt;/ins&amp;gt;&lt;br /&gt;
:See a list of resources&lt;br /&gt;
====refresh====&lt;br /&gt;
:Refresh resource list to find new resources&lt;br /&gt;
====refreshall====&lt;br /&gt;
:Refresh resources and restart any changed resources&lt;br /&gt;
====restart====&lt;br /&gt;
:Usage: info ''&amp;lt;resource-name&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Restarts a running resource eg: restart admin&lt;br /&gt;
====start====&lt;br /&gt;
:Usage: start ''&amp;lt;resource-name&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Start a loaded resource eg: start admin&lt;br /&gt;
====stop====&lt;br /&gt;
:Usage: stop ''&amp;lt;resource-name&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Stop a resource eg: stop admin&lt;br /&gt;
====stopall====&lt;br /&gt;
:Stop all running resources&lt;br /&gt;
====upgrade====&lt;br /&gt;
:&amp;lt;ins&amp;gt;Server console only&amp;lt;/ins&amp;gt;&lt;br /&gt;
:Perform a basic upgrade of all resources that use deprecated functions&lt;br /&gt;
====aclrequest====&lt;br /&gt;
:Usage: aclrequest [''list''|''allow''|''deny''] ''&amp;lt;resource-name&amp;gt;'' [''&amp;lt;right&amp;gt;''|''all'']&amp;lt;br&amp;gt;&lt;br /&gt;
:Manage ACL requests from resources implementing &amp;lt;aclrequest&amp;gt; in their [[meta.xml]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Account commands==&lt;br /&gt;
====aexec====&lt;br /&gt;
:Usage: aexec ''&amp;lt;nick&amp;gt;'' ''&amp;lt;command&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Force a player to execute a command eg: aexec playername say hello&lt;br /&gt;
====addaccount====&lt;br /&gt;
:Usage: addaccount ''&amp;lt;accountname&amp;gt;'' ''&amp;lt;password&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Add an account eg: addaccount accountname password&lt;br /&gt;
====chgpass====&lt;br /&gt;
:Usage: chgpass ''&amp;lt;accountname&amp;gt;'' ''&amp;lt;password&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Change an accounts password eg: chgpass account newpw&lt;br /&gt;
====delaccount====&lt;br /&gt;
:Usage: delaccount ''&amp;lt;accountname&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Delete an account eg: delaccount accountname&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Server commands==&lt;br /&gt;
====ase====&lt;br /&gt;
:&amp;lt;ins&amp;gt;Server console only&amp;lt;/ins&amp;gt;&lt;br /&gt;
:See the amount of master server list queries&lt;br /&gt;
====debugdb====&lt;br /&gt;
:Usage: debugdb ''&amp;lt;''0-2''&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;ins&amp;gt;Server console only&amp;lt;/ins&amp;gt;&lt;br /&gt;
:Set logging level for database functions. [0-Off &amp;amp;nbsp;1-Errors only &amp;amp;nbsp;2-All]&lt;br /&gt;
====help====&lt;br /&gt;
:&amp;lt;ins&amp;gt;Server console only&amp;lt;/ins&amp;gt;&lt;br /&gt;
:Displays these list of commands&lt;br /&gt;
====loadmodule====&lt;br /&gt;
:&amp;lt;ins&amp;gt;Server console only&amp;lt;/ins&amp;gt;&lt;br /&gt;
:Usage: loadmodule ''&amp;lt;module-filename&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Load a module eg: loadmodule ml_sockets.dll&lt;br /&gt;
====unloadmodule====&lt;br /&gt;
:&amp;lt;ins&amp;gt;Server console only&amp;lt;/ins&amp;gt;&lt;br /&gt;
:Usage: unloadmodule ''&amp;lt;module-filename&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Unload a module eg: unloadmodule ml_sockets.dll&lt;br /&gt;
====reloadmodule====&lt;br /&gt;
:&amp;lt;ins&amp;gt;Server console only&amp;lt;/ins&amp;gt;&lt;br /&gt;
:Usage: reloadmodule ''&amp;lt;module-filename&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Reload a module eg: reloadmodule ml_sockets.dll&lt;br /&gt;
====openports====&lt;br /&gt;
:&amp;lt;ins&amp;gt;Server console only&amp;lt;/ins&amp;gt;&lt;br /&gt;
:Test if server ports are open&lt;br /&gt;
====shutdown====&lt;br /&gt;
:Usage: shutdown ''&amp;lt;reason&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Shutdown the server eg: shutdown put reason here&lt;br /&gt;
====sver====&lt;br /&gt;
:Get the server MTA version&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Other commands==&lt;br /&gt;
====say====&lt;br /&gt;
:Usage: say ''&amp;lt;text&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Show a message to all players on the server eg: say hello&lt;br /&gt;
====whois====&lt;br /&gt;
:Usage: whois ''&amp;lt;nick&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Get the IP of a player currently connected (use whowas for IP/serial/version)&lt;br /&gt;
====whowas====&lt;br /&gt;
:Usage: whowas ''&amp;lt;nick&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Get IP/Serial of a player that was previously connected to the server&lt;br /&gt;
====ver====&lt;br /&gt;
:Get the MTA version&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Client relevant only==&lt;br /&gt;
====chgmypass====&lt;br /&gt;
:&amp;lt;ins&amp;gt;Client  only&amp;lt;/ins&amp;gt;&lt;br /&gt;
:Usage: chgmypass ''&amp;lt;oldpass&amp;gt;'' ''&amp;lt;newpass&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Change your password eg: chgmypass oldpw newpw&lt;br /&gt;
====debugscript====&lt;br /&gt;
:&amp;lt;ins&amp;gt;Client  only&amp;lt;/ins&amp;gt;&lt;br /&gt;
:Usage: debugscript ''&amp;lt;''0-3''&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Remove (This does not work &amp;quot;Incorrect client type for this command&amp;quot;)&lt;br /&gt;
====login====&lt;br /&gt;
:&amp;lt;ins&amp;gt;Client  only&amp;lt;/ins&amp;gt;&lt;br /&gt;
:Usage: login ''&amp;lt;accountname&amp;gt;'' ''&amp;lt;password&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Login to an account eg: login accountname password&lt;br /&gt;
====logout====&lt;br /&gt;
:&amp;lt;ins&amp;gt;Client  only&amp;lt;/ins&amp;gt;&lt;br /&gt;
:Log out of the current account&lt;br /&gt;
====me====&lt;br /&gt;
:&amp;lt;ins&amp;gt;Client  only&amp;lt;/ins&amp;gt;&lt;br /&gt;
:Usage: me ''&amp;lt;text&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Show a message to all players on the server, with your nick prepended&lt;br /&gt;
====msg====&lt;br /&gt;
:&amp;lt;ins&amp;gt;Client  only&amp;lt;/ins&amp;gt;&lt;br /&gt;
:Usage: msg ''&amp;lt;nick&amp;gt;'' ''&amp;lt;text&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Send a message to a player eg: msg playername hello&lt;br /&gt;
====nick====&lt;br /&gt;
:&amp;lt;ins&amp;gt;Client  only&amp;lt;/ins&amp;gt;&lt;br /&gt;
:Usage: nick ''&amp;lt;old-nick&amp;gt;'' ''&amp;lt;new-nick&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Change your ingame nickname&lt;br /&gt;
====teamsay====&lt;br /&gt;
:&amp;lt;ins&amp;gt;Client  only&amp;lt;/ins&amp;gt;&lt;br /&gt;
:Usage: teamsay ''&amp;lt;test&amp;gt;''&amp;lt;br&amp;gt;&lt;br /&gt;
:Send a message to all players on the same team&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAllAccountData&amp;diff=29240</id>
		<title>GetAllAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAllAccountData&amp;diff=29240"/>
		<updated>2012-01-30T18:39:53Z</updated>

		<summary type="html">&lt;p&gt;OpenIDUser34: Created page with &amp;quot;__NOTOC__ {{Server function}} This function returns a table containing all the user data for the account provided ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; table getAccountAllData ( account theAcco...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function returns a table containing all the user data for the account provided&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getAccountAllData ( account theAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
A [[table]] containing all the user data. This table might be empty.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function printAllData ( thePlayer )&lt;br /&gt;
    local playerAccount = getPlayerAccount( thePlayer ) -- get his account&lt;br /&gt;
    if ( playerAccount ) then -- if we got the account then&lt;br /&gt;
        local data = getAccountAllData( playerAccount ) -- get data&lt;br /&gt;
        count = 0&lt;br /&gt;
        for _ in pairs(data) do count = count + 1 end -- get the count&lt;br /&gt;
        outputChatBox ( &amp;quot;table holds &amp;quot; .. count .. &amp;quot; entries&amp;quot; ) -- output number of rows&lt;br /&gt;
        if ( data ) then&lt;br /&gt;
            for k,v in pairs ( data ) do&lt;br /&gt;
                outputChatBox(k..&amp;quot;: &amp;quot;..v) -- print the key and value of each entry of data&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;getall&amp;quot;, printAllData ) -- add a command handler for command 'getall'&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account functions}}&lt;/div&gt;</summary>
		<author><name>OpenIDUser34</name></author>
	</entry>
</feed>