<?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=Mountnl</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=Mountnl"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Mountnl"/>
	<updated>2026-04-22T06:29:32Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsVoice&amp;diff=14936</id>
		<title>Modules/IRCEcho/ircIsVoice</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsVoice&amp;diff=14936"/>
		<updated>2008-01-13T19:20:01Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Can be used to check if the user has Voice or higher&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircIsVoice ( IRCConnection irc, string channel, string nick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''channel:''' The channel that you want to check on&lt;br /&gt;
* '''nick:''' The person that you want to check on&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This script can be used from irc, so that people with voice or higher can use !say&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function irc_onPrivMsg( szChannel, szNick, szText )&lt;br /&gt;
  	if string.find( szText, &amp;quot;!say&amp;quot; ) == 1 then&lt;br /&gt;
		if ( ircIsVoice( pIRC, szChannel, szNick ) ) then&lt;br /&gt;
		  	local Message = string.sub(szText, 5)&lt;br /&gt;
		  	outputChatBox(&amp;quot;* &amp;quot; .. szNick .. &amp;quot; [IRC]: &amp;quot; .. Message)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsHalfop&amp;diff=14935</id>
		<title>Modules/IRCEcho/ircIsHalfop</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsHalfop&amp;diff=14935"/>
		<updated>2008-01-13T19:19:45Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Can be used to check if the user has Halfop or higher&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircIsHalfop ( IRCConnection irc, string channel, string nick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''channel:''' The channel that you want to check on&lt;br /&gt;
* '''nick:''' The person that you want to check on&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This script can be used from irc, so that people with Halfop or higher can use !asay&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function irc_onPrivMsg( szChannel, szNick, szText )&lt;br /&gt;
  	if string.find( szText, &amp;quot;!asay&amp;quot; ) == 1 then&lt;br /&gt;
		if ( ircIsHalfop( pIRC, szChannel, szNick ) ) then&lt;br /&gt;
		  	local Message = string.sub(szText, 6)&lt;br /&gt;
		  	outputChatBox(&amp;quot;The admin says: &amp;quot; .. Message, getRootResource(), 255, 0, 0)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsOp&amp;diff=14934</id>
		<title>Modules/IRCEcho/ircIsOp</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsOp&amp;diff=14934"/>
		<updated>2008-01-13T19:19:27Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Can be used to check if the user has Op or higher&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircIsOp ( IRCConnection irc, string channel, string nick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''channel:''' The channel that you want to check on&lt;br /&gt;
* '''nick:''' The person that you want to check on&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This script can be used from irc, so that people with op or higher can use !kick&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function irc_onPrivMsg( szChannel, szNick, szText )&lt;br /&gt;
  	if string.find( szText, &amp;quot;!kick&amp;quot; ) == 1 then&lt;br /&gt;
		if ( ircIsOp( pIRC, szChannel, szNick ) ) then&lt;br /&gt;
		  	local thePlayer = getPlayerFromNick(string.sub(szText, 6))&lt;br /&gt;
		  	if (thePlayer) then&lt;br /&gt;
				kickPlayer( thePlayer )&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsSuper&amp;diff=14933</id>
		<title>Modules/IRCEcho/ircIsSuper</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsSuper&amp;diff=14933"/>
		<updated>2008-01-13T19:19:08Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Can be used to check if the user has superops (aka Protection) or higher&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircIsSuper ( IRCConnection irc, string channel, string nick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''channel:''' The channel that you want to check on&lt;br /&gt;
* '''nick:''' The person that you want to check on&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This script can be used from irc, so that people with superops or higher can use !ban&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function irc_onPrivMsg( szChannel, szNick, szText )&lt;br /&gt;
  	if string.find( szText, &amp;quot;!ban&amp;quot; ) == 1 then&lt;br /&gt;
		if ( ircIsSuper( pIRC, szChannel, szNick ) ) then&lt;br /&gt;
		  	local thePlayer = getPlayerFromNick(string.sub(szText, 5))&lt;br /&gt;
		  	if (thePlayer) then&lt;br /&gt;
				banPlayer( thePlayer )&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsOwner&amp;diff=14932</id>
		<title>Modules/IRCEcho/ircIsOwner</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsOwner&amp;diff=14932"/>
		<updated>2008-01-13T19:18:50Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Can be used to check if the user has founderrights in an channel&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircIsOwner ( IRCConnection irc, string channel, string nick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''channel:''' The channel that you want to check on&lt;br /&gt;
* '''nick:''' The person that you want to check on&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This script can be used from irc, so that people with founderrights or higher can use !unban&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function irc_onPrivMsg( szChannel, szNick, szText )&lt;br /&gt;
  	if string.find( szText, &amp;quot;!unban&amp;quot; ) == 1 then&lt;br /&gt;
		if ( ircIsOwner( pIRC, szChannel, szNick ) ) then&lt;br /&gt;
		  	unbanIP(string.sub(szText, 7))&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircGetStatus&amp;diff=14931</id>
		<title>Modules/IRCEcho/ircGetStatus</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircGetStatus&amp;diff=14931"/>
		<updated>2008-01-13T19:18:20Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: New page: __NOTOC__ {{ModuleFunction|IRCEcho}} Can be used to check if the user has Op or higher  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; function ircGetStatus ( IRCConnection irc, string channel, string nick ) &amp;lt;/...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Can be used to check if the user has Op or higher&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircGetStatus ( IRCConnection irc, string channel, string nick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''channel:''' The channel that you want to check on&lt;br /&gt;
* '''nick:''' The person that you want to check on&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This script can be used from irc, so people can check their rights&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function irc_onPrivMsg( szChannel, szNick, szText )&lt;br /&gt;
  	if string.find( szText, &amp;quot;!rights&amp;quot; ) == 1 then&lt;br /&gt;
		ircMessage( pIRC, szChannel,  szNick .. &amp;quot;, you have level &amp;quot; .. tostring( ircGetStatus( pIRC, szChannel, szNick ) )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsOwner&amp;diff=14930</id>
		<title>Modules/IRCEcho/ircIsOwner</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsOwner&amp;diff=14930"/>
		<updated>2008-01-13T19:15:52Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: New page: __NOTOC__ {{ModuleFunction|IRCEcho}} Can be used to check if the user has founderrights in an channel  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; function ircIsOwner ( IRCConnection irc, string channel, str...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Can be used to check if the user has founderrights in an channel&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircIsOwner ( IRCConnection irc, string channel, string nick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''channel:''' The channel that you want to check on&lt;br /&gt;
* '''nick:''' The person that you want to check on&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This script can be used from irc, so that people with founderrights or higher can use !unban&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function irc_onPrivMsg( szChannel, szNick, szText )&lt;br /&gt;
  	if string.find( szText, &amp;quot;!unban&amp;quot; ) == 1 then&lt;br /&gt;
		if ( ircIsOwner( pIRC, '#mta', szNick ) ) then&lt;br /&gt;
		  	unbanIP(string.sub(szText, 7))&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsSuper&amp;diff=14929</id>
		<title>Modules/IRCEcho/ircIsSuper</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsSuper&amp;diff=14929"/>
		<updated>2008-01-13T19:13:52Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: New page: __NOTOC__ {{ModuleFunction|IRCEcho}} Can be used to check if the user has superops (aka Protection) or higher  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; function ircIsSuper ( IRCConnection irc, string chan...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Can be used to check if the user has superops (aka Protection) or higher&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircIsSuper ( IRCConnection irc, string channel, string nick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''channel:''' The channel that you want to check on&lt;br /&gt;
* '''nick:''' The person that you want to check on&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This script can be used from irc, so that people with superops or higher can use !ban&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function irc_onPrivMsg( szChannel, szNick, szText )&lt;br /&gt;
  	if string.find( szText, &amp;quot;!ban&amp;quot; ) == 1 then&lt;br /&gt;
		if ( ircIsSuper( pIRC, '#mta', szNick ) ) then&lt;br /&gt;
		  	local thePlayer = getPlayerFromNick(string.sub(szText, 5))&lt;br /&gt;
		  	if (thePlayer) then&lt;br /&gt;
				banPlayer( thePlayer )&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsVoice&amp;diff=14928</id>
		<title>Modules/IRCEcho/ircIsVoice</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsVoice&amp;diff=14928"/>
		<updated>2008-01-13T19:12:43Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Can be used to check if the user has Voice or higher&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircIsVoice ( IRCConnection irc, string channel, string nick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''channel:''' The channel that you want to check on&lt;br /&gt;
* '''nick:''' The person that you want to check on&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This script can be used from irc, so that people with voice or higher can use !say&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function irc_onPrivMsg( szChannel, szNick, szText )&lt;br /&gt;
  	if string.find( szText, &amp;quot;!say&amp;quot; ) == 1 then&lt;br /&gt;
		if ( ircIsVoice( pIRC, '#mta', szNick ) ) then&lt;br /&gt;
		  	local Message = string.sub(szText, 5)&lt;br /&gt;
		  	outputChatBox(&amp;quot;* &amp;quot; .. szNick .. &amp;quot; [IRC]: &amp;quot; .. Message)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsVoice&amp;diff=14927</id>
		<title>Modules/IRCEcho/ircIsVoice</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsVoice&amp;diff=14927"/>
		<updated>2008-01-13T19:12:10Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Can be used to check if the user has Voice or higher&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircIsVoice ( IRCConnection irc, string channel, string nick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''channel:''' The channel that you want to check on&lt;br /&gt;
* '''nick:''' The person that you want to check on&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This script can be used from irc, so that people with voice or higher can use !say&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function irc_onPrivMsg( szChannel, szNick, szText )&lt;br /&gt;
  	if string.find( szText, &amp;quot;!say&amp;quot; ) == 1 then&lt;br /&gt;
		if ( ircIsVoice( pIRC, '#mta', szNick ) )&lt;br /&gt;
		  	local Message = string.sub(szText, 5)&lt;br /&gt;
		  	outputChatBox(&amp;quot;* &amp;quot; .. szNick .. &amp;quot; [IRC]: &amp;quot; .. Message)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsOp&amp;diff=14926</id>
		<title>Modules/IRCEcho/ircIsOp</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsOp&amp;diff=14926"/>
		<updated>2008-01-13T19:11:43Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Can be used to check if the user has Op or higher&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircIsOp ( IRCConnection irc, string channel, string nick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''channel:''' The channel that you want to check on&lt;br /&gt;
* '''nick:''' The person that you want to check on&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This script can be used from irc, so that people with op or higher can use !kick&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function irc_onPrivMsg( szChannel, szNick, szText )&lt;br /&gt;
  	if string.find( szText, &amp;quot;!kick&amp;quot; ) == 1 then&lt;br /&gt;
		if ( ircIsOp( pIRC, '#mta', szNick ) ) then&lt;br /&gt;
		  	local thePlayer = getPlayerFromNick(string.sub(szText, 6))&lt;br /&gt;
		  	if (thePlayer) then&lt;br /&gt;
				kickPlayer( thePlayer )&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsHalfop&amp;diff=14925</id>
		<title>Modules/IRCEcho/ircIsHalfop</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsHalfop&amp;diff=14925"/>
		<updated>2008-01-13T19:11:31Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Can be used to check if the user has Halfop or higher&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircIsHalfop ( IRCConnection irc, string channel, string nick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''channel:''' The channel that you want to check on&lt;br /&gt;
* '''nick:''' The person that you want to check on&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This script can be used from irc, so that people with Halfop or higher can use !asay&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function irc_onPrivMsg( szChannel, szNick, szText )&lt;br /&gt;
  	if string.find( szText, &amp;quot;!asay&amp;quot; ) == 1 then&lt;br /&gt;
		if ( ircIsHalfop( pIRC, '#mta', szNick ) ) then&lt;br /&gt;
		  	local Message = string.sub(szText, 6)&lt;br /&gt;
		  	outputChatBox(&amp;quot;The admin says: &amp;quot; .. Message, getRootResource(), 255, 0, 0)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsOp&amp;diff=14924</id>
		<title>Modules/IRCEcho/ircIsOp</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsOp&amp;diff=14924"/>
		<updated>2008-01-13T19:11:01Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: New page: __NOTOC__ {{ModuleFunction|IRCEcho}} Can be used to check if the user has Op or higher  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; function ircIsOp ( IRCConnection irc, string channel, string nick ) &amp;lt;/syntaxhighlight&amp;gt;...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Can be used to check if the user has Op or higher&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircIsOp ( IRCConnection irc, string channel, string nick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''channel:''' The channel that you want to check on&lt;br /&gt;
* '''nick:''' The person that you want to check on&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This script can be used from irc, so that people with op or higher can use !kick&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function irc_onPrivMsg( szChannel, szNick, szText )&lt;br /&gt;
  	if string.find( szText, &amp;quot;!kick&amp;quot; ) == 1 then&lt;br /&gt;
		if ( ircIsOp( pIRC, '#mta', szNick ) ) then&lt;br /&gt;
		  	local thePlayer = getPlayerFromNick(string.sub(szText, 5))&lt;br /&gt;
		  	if (thePlayer) then&lt;br /&gt;
				kickPlayer( thePlayer )&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsHalfop&amp;diff=14923</id>
		<title>Modules/IRCEcho/ircIsHalfop</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsHalfop&amp;diff=14923"/>
		<updated>2008-01-13T19:07:58Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: New page: __NOTOC__ {{ModuleFunction|IRCEcho}} Can be used to check if the user has Halfop or higher  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; function ircIsHalfop ( IRCConnection irc, string channel, string nick )...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Can be used to check if the user has Halfop or higher&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircIsHalfop ( IRCConnection irc, string channel, string nick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''channel:''' The channel that you want to check on&lt;br /&gt;
* '''nick:''' The person that you want to check on&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This script can be used from irc, so that people with Halfop or higher can use !asay&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function irc_onPrivMsg( szChannel, szNick, szText )&lt;br /&gt;
  	if string.find( szText, &amp;quot;!asay&amp;quot; ) == 1 then&lt;br /&gt;
		if ( ircIsHalfop( pIRC, '#mta', szNick ) )&lt;br /&gt;
		  	local Message = string.sub(szText, 10)&lt;br /&gt;
		  	outputChatBox(&amp;quot;The admin says: &amp;quot; .. Message, getRootResource(), 255, 0, 0)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsVoice&amp;diff=14922</id>
		<title>Modules/IRCEcho/ircIsVoice</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircIsVoice&amp;diff=14922"/>
		<updated>2008-01-13T19:06:22Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: New page: __NOTOC__ {{ModuleFunction|IRCEcho}} Can be used to check if the user has Voice or higher  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; function ircIsVoice ( IRCConnection irc, string channel, string nick ) &amp;lt;...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Can be used to check if the user has Voice or higher&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircIsVoice ( IRCConnection irc, string channel, string nick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''channel:''' The channel that you want to check on&lt;br /&gt;
* '''nick:''' The person that you want to check on&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This script can be used from irc, so that people with voice or higher can use !say&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function irc_onPrivMsg( szChannel, szNick, szText )&lt;br /&gt;
  	if string.find( szText, &amp;quot;!say&amp;quot; ) == 1 then&lt;br /&gt;
		if ( ircIsVoice( pIRC, '#mta', szNick ) )&lt;br /&gt;
		  	local Message = string.sub(szText, 10)&lt;br /&gt;
		  	outputChatBox(&amp;quot;* &amp;quot; .. szNick .. &amp;quot; [IRC]: &amp;quot; .. Message)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircRaw&amp;diff=14921</id>
		<title>Modules/IRCEcho/ircRaw</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircRaw&amp;diff=14921"/>
		<updated>2008-01-13T19:02:03Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: New page: __NOTOC__ {{ModuleFunction|IRCEcho}} Sends an raw message to the IRCConnection  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; function ircRaw ( IRCConnection irc, string command ) &amp;lt;/syntaxhighlight&amp;gt; ===Required arguments...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Sends an raw message to the IRCConnection&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircRaw ( IRCConnection irc, string command )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''command:''' The command that you want to send to the IRC server&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This makes the IRCConnection ban Fedor!*@*&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function ircBanHost( thePlayer, command, channel )&lt;br /&gt;
	ircRaw(&amp;quot;MODE #mta +B Fedor!*@*&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler( &amp;quot;disgrace&amp;quot;, ircBanHost )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircMessage&amp;diff=14920</id>
		<title>Modules/IRCEcho/ircMessage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircMessage&amp;diff=14920"/>
		<updated>2008-01-13T18:58:10Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Displays an message to an IRC Channel&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircMessage ( IRCConnection irc, string channel, string message )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''channel:''' The channel or person you want to send the message to&lt;br /&gt;
* '''message:''' The message&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This echo is displaying all the ingame chat to #mta with the IRCConnection stored in pIRC&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function ChatToIRC( message, type )&lt;br /&gt;
	if (type == 0) then -- Its an normal chatmessage&lt;br /&gt;
		ircMessage( pIRC, &amp;quot;#mta&amp;quot;, &amp;quot;CHAT:�� &amp;quot; .. getClientName( source ) .. &amp;quot;: &amp;quot; .. message )&lt;br /&gt;
	elseif (type == 1) then -- Its an action&lt;br /&gt;
		ircMessage( pIRC, &amp;quot;#mta&amp;quot;, &amp;quot;ACTION: &amp;quot; .. getClientName( source ) .. &amp;quot;: &amp;quot; .. message )&lt;br /&gt;
	elseif (type == 2) then -- Teamchat message&lt;br /&gt;
		ircMessage( pIRC, &amp;quot;#mta&amp;quot;, &amp;quot;TEAMCHAT: &amp;quot; .. getClientName( source ) .. &amp;quot;: &amp;quot; .. message )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onPlayerChat&amp;quot;, getRootElement(), ChatToIRC )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircNotice&amp;diff=14919</id>
		<title>Modules/IRCEcho/ircNotice</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircNotice&amp;diff=14919"/>
		<updated>2008-01-13T18:57:57Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Notice somebody of an action&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircNotice ( IRCConnection irc, string channel, string message )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''channel:''' The channel or user you want to send to&lt;br /&gt;
* '''message:''' The message&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This example is warning IJs of an banned user&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function ReportBan( ip )&lt;br /&gt;
	ircNotice( pIRC, &amp;quot;IJs&amp;quot;, getClientName( source ) .. &amp;quot; banned &amp;quot; .. sz )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onBan&amp;quot;, getRootElement(), ReportBan )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircChangeNick&amp;diff=14918</id>
		<title>Modules/IRCEcho/ircChangeNick</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircChangeNick&amp;diff=14918"/>
		<updated>2008-01-13T18:57:41Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Changes the name of the IRCConnection&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircChangeNick ( IRCConnection irc, string newnick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''newnick:''' The new nickname&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This example adds the command &amp;quot;ircname&amp;quot;. That command can change the IRCConnection's name&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function changeIrcName( thePlayer, command, newname )&lt;br /&gt;
	ircChangeNick( pIRC, newname )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler( &amp;quot;ircname&amp;quot;, changeIrcName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircJoin&amp;diff=14917</id>
		<title>Modules/IRCEcho/ircJoin</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircJoin&amp;diff=14917"/>
		<updated>2008-01-13T18:57:30Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Lets the IRCConnection join an channel&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircJoin ( IRCConnection irc, string channel )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''channel:''' The channel you want to join&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This command makes the bot join another channel&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function ircJoinChannel( thePlayer, command, channel )&lt;br /&gt;
	ircJoinChannel( pIRC, channel )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler( &amp;quot;ircjoin&amp;quot;, ircJoinChannel )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircPart&amp;diff=14916</id>
		<title>Modules/IRCEcho/ircPart</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircPart&amp;diff=14916"/>
		<updated>2008-01-13T18:57:19Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Lets the IRCConnection leave a channel&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircPart ( IRCConnection irc, string channel )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection&lt;br /&gt;
* '''channel:''' The channel you want to leave&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This command makes the bot leave a channel&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function ircLeaveChannel( thePlayer, command, channel )&lt;br /&gt;
	ircPart( pIRC, channel )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler( &amp;quot;ircpart&amp;quot;, ircLeaveChannel )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircPart&amp;diff=14915</id>
		<title>Modules/IRCEcho/ircPart</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircPart&amp;diff=14915"/>
		<updated>2008-01-13T18:57:07Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: New page: __NOTOC__ {{ModuleFunction|IRCEcho}} Lets the IRCConnection leave a channel  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; function ircPart ( IRCConnection irc, string channel ) &amp;lt;/syntaxhighlight&amp;gt; ===Required arguments==...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Lets the IRCConnection leave a channel&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircPart ( IRCConnection irc, string channel )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection you wish to disconnect&lt;br /&gt;
* '''channel:''' The channel you want to leave&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This command makes the bot leave a channel&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function ircLeaveChannel( thePlayer, command, channel )&lt;br /&gt;
	ircPart( pIRC, channel )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler( &amp;quot;ircpart&amp;quot;, ircLeaveChannel )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircJoin&amp;diff=14914</id>
		<title>Modules/IRCEcho/ircJoin</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircJoin&amp;diff=14914"/>
		<updated>2008-01-13T18:56:02Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: New page: __NOTOC__ {{ModuleFunction|IRCEcho}} Lets the IRCConnection join an channel  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; function ircJoin ( IRCConnection irc, string channel ) &amp;lt;/syntaxhighlight&amp;gt; ===Required arguments==...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Lets the IRCConnection join an channel&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircJoin ( IRCConnection irc, string channel )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection you wish to disconnect&lt;br /&gt;
* '''channel:''' The channel you want to join&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This command makes the bot join another channel&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function ircJoinChannel( thePlayer, command, channel )&lt;br /&gt;
	ircJoinChannel( pIRC, channel )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler( &amp;quot;ircjoin&amp;quot;, ircJoinChannel )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircChangeNick&amp;diff=14913</id>
		<title>Modules/IRCEcho/ircChangeNick</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircChangeNick&amp;diff=14913"/>
		<updated>2008-01-13T18:53:57Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: New page: __NOTOC__ {{ModuleFunction|IRCEcho}} Changes the name of the IRCConnection  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; function ircChangeNick ( IRCConnection irc, string newnick ) &amp;lt;/syntaxhighlight&amp;gt; ===Required argume...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Changes the name of the IRCConnection&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircChangeNick ( IRCConnection irc, string newnick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection you wish to disconnect&lt;br /&gt;
* '''newnick:''' The new nickname&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This example adds the command &amp;quot;ircname&amp;quot;. That command can change the IRCConnection's name&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function changeIrcName( thePlayer, command, newname )&lt;br /&gt;
	ircChangeNick( pIRC, newname )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler( &amp;quot;ircname&amp;quot;, changeIrcName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircMessage&amp;diff=14912</id>
		<title>Modules/IRCEcho/ircMessage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircMessage&amp;diff=14912"/>
		<updated>2008-01-13T18:49:56Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Displays an message to an IRC Channel&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircMessage ( IRCConnection irc, string channel, string message )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection you wish to disconnect&lt;br /&gt;
* '''channel:''' The channel or person you want to send the message to&lt;br /&gt;
* '''message:''' The message&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This echo is displaying all the ingame chat to #mta with the IRCConnection stored in pIRC&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function ChatToIRC( message, type )&lt;br /&gt;
	if (type == 0) then -- Its an normal chatmessage&lt;br /&gt;
		ircMessage( pIRC, &amp;quot;#mta&amp;quot;, &amp;quot;CHAT:�� &amp;quot; .. getClientName( source ) .. &amp;quot;: &amp;quot; .. message )&lt;br /&gt;
	elseif (type == 1) then -- Its an action&lt;br /&gt;
		ircMessage( pIRC, &amp;quot;#mta&amp;quot;, &amp;quot;ACTION: &amp;quot; .. getClientName( source ) .. &amp;quot;: &amp;quot; .. message )&lt;br /&gt;
	elseif (type == 2) then -- Teamchat message&lt;br /&gt;
		ircMessage( pIRC, &amp;quot;#mta&amp;quot;, &amp;quot;TEAMCHAT: &amp;quot; .. getClientName( source ) .. &amp;quot;: &amp;quot; .. message )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onPlayerChat&amp;quot;, getRootElement(), ChatToIRC )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircNotice&amp;diff=14911</id>
		<title>Modules/IRCEcho/ircNotice</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircNotice&amp;diff=14911"/>
		<updated>2008-01-13T18:49:06Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: New page: __NOTOC__ {{ModuleFunction|IRCEcho}} Notice somebody of an action  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; function ircNotice ( IRCConnection irc, string channel, string message ) &amp;lt;/syntaxhighlight&amp;gt; ===Required arg...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Notice somebody of an action&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircNotice ( IRCConnection irc, string channel, string message )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection you wish to disconnect&lt;br /&gt;
* '''channel:''' The channel of user you want to send to&lt;br /&gt;
* '''message:''' The message&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This example is warning IJs of an banned user&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function ReportBan( ip )&lt;br /&gt;
	ircNotice( pIRC, &amp;quot;IJs&amp;quot;, getClientName( source ) .. &amp;quot; banned &amp;quot; .. sz )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onBan&amp;quot;, getRootElement(), ReportBan )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircMessage&amp;diff=14910</id>
		<title>Modules/IRCEcho/ircMessage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/IRCEcho/ircMessage&amp;diff=14910"/>
		<updated>2008-01-13T18:42:02Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: New page: __NOTOC__ {{ModuleFunction|IRCEcho}} Displays an message to an IRC Channel  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; function ircDisconnect ( IRCConnection irc, string channel, string message ) &amp;lt;/syntaxhighlight&amp;gt; ==...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{ModuleFunction|IRCEcho}}&lt;br /&gt;
Displays an message to an IRC Channel&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ircDisconnect ( IRCConnection irc, string channel, string message )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''irc:''' The IRCConnection you wish to disconnect&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
'''Example 1:''' This echo is displaying all the ingame chat to #mta with the IRCConnection stored in pIRC&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function ChatToIRC( message, type )&lt;br /&gt;
	if (type == 0) then -- Its an normal chatmessage&lt;br /&gt;
		ircMessage( pIRC, &amp;quot;#mta&amp;quot;, &amp;quot;CHAT:�� &amp;quot; .. getClientName( source ) .. &amp;quot;: &amp;quot; .. message )&lt;br /&gt;
	elseif (type == 1) then -- Its an action&lt;br /&gt;
		ircMessage( pIRC, &amp;quot;#mta&amp;quot;, &amp;quot;ACTION: &amp;quot; .. getClientName( source ) .. &amp;quot;: &amp;quot; .. message )&lt;br /&gt;
	elseif (type == 2) then -- Teamchat message&lt;br /&gt;
		ircMessage( pIRC, &amp;quot;#mta&amp;quot;, &amp;quot;TEAMCHAT: &amp;quot; .. getClientName( source ) .. &amp;quot;: &amp;quot; .. message )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onPlayerChat&amp;quot;, getRootElement(), ChatToIRC )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Modules/IRCEcho/Functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HasObjectPermissionTo&amp;diff=14535</id>
		<title>HasObjectPermissionTo</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HasObjectPermissionTo&amp;diff=14535"/>
		<updated>2008-01-05T15:27:08Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function returns whether or not the given object has access to perform the given action. &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 hasObjectPermissionTo ( string / element theObject, string theAction [, bool defaultPermission = true ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theObject:''' The object to test if has permission to. This can be a client element (ie. a player), a resource or a string in the form &amp;quot;user.&amp;lt;name&amp;gt;&amp;quot; or &amp;quot;resource.&amp;lt;name&amp;gt;&amp;quot;.&lt;br /&gt;
*'''theAction:''' The action to test if the given object has access to. Ie. &amp;quot;function.kickPlayer&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''defaultPermission:''' The default permission if none is specified in either of the groups the given object is a member of. If this is left to true, the given object will have permissions to perform the action unless the opposite is explicitly specified in the [[ACL]]. If false, the action will be denied by default unless explicitly approved by the [[ACL]].&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the given object has permission to perform the given action, ''false'' otherwise. Returns ''nil'' if the function failed because of bad arguments.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example does ban a player&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Ban command&lt;br /&gt;
function onKickCommandHandler ( playerSource, commandName, playerToKick, stringReason )&lt;br /&gt;
    -- Does the calling user have permission to kick the player? Default&lt;br /&gt;
    -- to false for safety reasons. We do this so any user can't use us to&lt;br /&gt;
    -- kick players.&lt;br /&gt;
    if ( hasObjectPermissionTo ( playerSource, &amp;quot;function.kickPlayer&amp;quot;, false ) ) then&lt;br /&gt;
&lt;br /&gt;
        -- Do we have permission to kick the player? We do this so we can fail&lt;br /&gt;
        -- nicely if this resource doesn't have access to call that function.&lt;br /&gt;
        if ( hasObjectPermissionTo ( getThisResource (), &amp;quot;function.kickPlayer&amp;quot;, true ) ) then&lt;br /&gt;
            -- Kick him&lt;br /&gt;
            kickPlayer ( playerToKick, playerSource, stringReason )&lt;br /&gt;
        else&lt;br /&gt;
            -- Resource doesn't have any permissions, sorry&lt;br /&gt;
            outputChatBox ( &amp;quot;kick: The admin resource is not able to kick players. Please give this resource access to 'function.kickPlayer' in the ACL to use this function.&amp;quot;, playerSource )&lt;br /&gt;
        end&lt;br /&gt;
    else&lt;br /&gt;
        -- User doesn't have any permissions&lt;br /&gt;
        outputChatBox ( &amp;quot;kick: You don't have permissions to use this command.&amp;quot;, playerSource )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;ban&amp;quot;, onKickCommandHandler )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&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;
{{ACL_functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetServerPassword&amp;diff=14526</id>
		<title>GetServerPassword</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetServerPassword&amp;diff=14526"/>
		<updated>2008-01-05T12:07:13Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&amp;lt;!-- Change this to &amp;quot;Client function&amp;quot; or &amp;quot;Server function&amp;quot; appropriately--&amp;gt;&lt;br /&gt;
&amp;lt;!-- Describe in plain english what this function does. Don't go into details, just give an overview --&amp;gt;&lt;br /&gt;
This function returns the current password required to join the server.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getServerPassword ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
Returns the current server password as a string if it has a password, if not it returns ''nil''.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example prints the serverpassword to the player&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function viewPassword ( thePlayer, command )&lt;br /&gt;
  -- Put the password in a var&lt;br /&gt;
  local password = getServerPassword ()&lt;br /&gt;
&lt;br /&gt;
  -- Check if the server has a password&lt;br /&gt;
  -- If the server has an password, echo it&lt;br /&gt;
  if (password != nil) then&lt;br /&gt;
    outputChatBox ( &amp;quot;The server password is &amp;quot; .. password, thePlayer )&lt;br /&gt;
  &lt;br /&gt;
  -- Else print that there isnt any password&lt;br /&gt;
  else&lt;br /&gt;
    outputChatBox ( &amp;quot;The server doesn't have any password set&amp;quot;, thePlayer )&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Add console command 'viewpassword'&lt;br /&gt;
addCommandHandler ( &amp;quot;viewpassword&amp;quot;, viewPassword )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Server functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetServerPassword&amp;diff=14525</id>
		<title>GetServerPassword</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetServerPassword&amp;diff=14525"/>
		<updated>2008-01-05T12:05:25Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&amp;lt;!-- Change this to &amp;quot;Client function&amp;quot; or &amp;quot;Server function&amp;quot; appropriately--&amp;gt;&lt;br /&gt;
&amp;lt;!-- Describe in plain english what this function does. Don't go into details, just give an overview --&amp;gt;&lt;br /&gt;
This function returns the current password required to join the server.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getServerPassword ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
Returns the current server password as a string if it has a password, if not it returns ''nil''.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example prints the serverpassword to the player&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function viewPassword ( thePlayer, command )&lt;br /&gt;
  -- Put the password in a var&lt;br /&gt;
  local password = getServerPassword ()&lt;br /&gt;
&lt;br /&gt;
  -- Check if the server has a password&lt;br /&gt;
  -- If the server has an password, echo it&lt;br /&gt;
  if (password != nil) then&lt;br /&gt;
    outputChatBox ( &amp;quot;The server password is &amp;quot; .. getServerPassword (), thePlayer )&lt;br /&gt;
  &lt;br /&gt;
  -- Else print that there isnt any password&lt;br /&gt;
  else&lt;br /&gt;
    outputChatBox ( &amp;quot;The server doesn't have any password set&amp;quot;, thePlayer )&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Add console command 'viewpassword'&lt;br /&gt;
addCommandHandler ( &amp;quot;viewpassword&amp;quot;, viewPassword )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Server functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetServerPassword&amp;diff=14524</id>
		<title>GetServerPassword</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetServerPassword&amp;diff=14524"/>
		<updated>2008-01-05T12:04:51Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&amp;lt;!-- Change this to &amp;quot;Client function&amp;quot; or &amp;quot;Server function&amp;quot; appropriately--&amp;gt;&lt;br /&gt;
&amp;lt;!-- Describe in plain english what this function does. Don't go into details, just give an overview --&amp;gt;&lt;br /&gt;
This function returns the current password required to join the server.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getServerPassword ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
Returns the current server password as a string if it has a password, if not it returns ''nil''.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example prints the serverpassword to the player&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function viewPassword ( thePlayer, command )&lt;br /&gt;
  -- Put the password in a var&lt;br /&gt;
  local password = getServerPassword ()&lt;br /&gt;
&lt;br /&gt;
  -- Check if the server has a password&lt;br /&gt;
  -- If the server has an password, echo it&lt;br /&gt;
  if (password != nil) then&lt;br /&gt;
    outputChatBox ( &amp;quot;The server password is &amp;quot; .. getServerPassword (), thePlayer )&lt;br /&gt;
  &lt;br /&gt;
  -- Else print that there isnt any password&lt;br /&gt;
  else&lt;br /&gt;
    outputChatBox ( &amp;quot;The server password is &amp;quot; .. getServerPassword (), thePlayer )&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Add console command 'viewpassword'&lt;br /&gt;
addCommandHandler ( &amp;quot;viewpassword&amp;quot;, viewPassword )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Server functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnVehicleRespawn&amp;diff=14523</id>
		<title>OnVehicleRespawn</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnVehicleRespawn&amp;diff=14523"/>
		<updated>2008-01-05T11:58:37Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
This event is triggered when a vehicle is respawned due. See [[toggleVehicleRespawn]].&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool exploded&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''exploded''': ''true'' if this vehicle respawned because it exploded, ''false'' if it respawned due to being deserted.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[vehicle]] that respawned.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example shows a message in the chatbox, if it is respawned.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onVehicleRespawn ( exploded )&lt;br /&gt;
  -- Add this variable. It contains the vehicle name of the respawned vehicle&lt;br /&gt;
  local vehicleName = getVehicleName ( source )&lt;br /&gt;
  &lt;br /&gt;
  -- If it is exploded, echo a custom message&lt;br /&gt;
  if ( exploded == true ) then &lt;br /&gt;
    outputChatBox(&amp;quot;A &amp;quot; .. vehiclename .. &amp;quot; has been respawned, after an explosion&amp;quot;)&lt;br /&gt;
  &lt;br /&gt;
  -- else echo a normal message&lt;br /&gt;
  else &lt;br /&gt;
    outputChatBox(&amp;quot;A &amp;quot; .. vehiclename .. &amp;quot; has been respawned&amp;quot;)&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Add the Event Handler&lt;br /&gt;
addEventHandler ( &amp;quot;OnVehicleRespawn&amp;quot;, getRootElement(), onVehicleRespawn )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Event_functions}}&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Interior&amp;diff=14522</id>
		<title>Interior</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Interior&amp;diff=14522"/>
		<updated>2008-01-05T11:46:01Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An ''interior'' in GTA is an area that isn't 'outside'. For example, inside houses, casinos, restaurants, shops etc. Players can not, by default, access these. You can use various scripting functions to move elements into these interiors. When you change the interior a player is in, they can only see the non-player elements in that interior. Players can see each other in whatever interior they are in.&lt;br /&gt;
&lt;br /&gt;
You can have up to 255 interiors, interior 0 being the first one and referring to the normal GTA world.&lt;br /&gt;
&lt;br /&gt;
==Uses==&lt;br /&gt;
To allow a player to enter an interior, you should use the [[setElementInterior]] function on the player you wish to move. You can also use this function on other elements, for example to make a vehicle or object appear in the interior.&lt;br /&gt;
&lt;br /&gt;
==Relevant scripting functions==&lt;br /&gt;
*[[getElementInterior]]&lt;br /&gt;
*[[setElementInterior]]&lt;br /&gt;
*[[spawnPlayer]]&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[Dimension]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerAccount&amp;diff=14521</id>
		<title>GetPlayerAccount</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerAccount&amp;diff=14521"/>
		<updated>2008-01-05T11:35:47Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
Returns the accountname of the player&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getPlayerAccount ( player thePlayer )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player you wish the retrieve the name of the account from.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an string with name of the account.&lt;br /&gt;
-- TODO -- What does it return if it isnt known?&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
When a player types '/account' this example retrieves the player's accountname, and prints it to his screen.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function viewAccount(thePlayer, command)&lt;br /&gt;
	-- get the name of the account from thePlayer&lt;br /&gt;
	local accountName = getPlayerMoney(thePlayer) &lt;br /&gt;
	&lt;br /&gt;
	-- output the message to the player&lt;br /&gt;
	outputChatBox(&amp;quot;Your account name is &amp;quot; .. accountName, thePlayer)  	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- add the console command&lt;br /&gt;
addCommandHandler(&amp;quot;account&amp;quot;, viewAccount)                                    &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerAccount&amp;diff=14520</id>
		<title>GetPlayerAccount</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerAccount&amp;diff=14520"/>
		<updated>2008-01-05T11:34:40Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: New page: __NOTOC__  {{Server function}} Returns the accountname of the player  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getPlayerAccount ( player thePlayer )&amp;lt;/syntaxhighlight&amp;gt;   ===Required Arguments===  *'''thePlayer:''...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
Returns the accountname of the player&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getPlayerAccount ( player thePlayer )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player you wish the retrieve the name of the account from.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an string with name of the account.&lt;br /&gt;
-- TODO -- What does it return if it isnt known?&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
When a player types '/account' this example retrieves the player's accountname, and prints it to his screen.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function viewAccount(thePlayer, command)&lt;br /&gt;
	-- get the name of the account from thePlayer&lt;br /&gt;
	local accountName = getPlayerMoney(thePlayer) &lt;br /&gt;
	&lt;br /&gt;
	-- output the message&lt;br /&gt;
	outputChatBox(&amp;quot;Your account name is &amp;quot; .. accountName, thePlayer)  	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- add the console command&lt;br /&gt;
addCommandHandler(&amp;quot;account&amp;quot;, viewAccount)                                    &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerQuit&amp;diff=14519</id>
		<title>OnPlayerQuit</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerQuit&amp;diff=14519"/>
		<updated>2008-01-05T11:07:05Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
This event is triggered when a player disconnects from the server.&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''': A string containing the reason why the player left.&lt;br /&gt;
Quit reason string can be:&lt;br /&gt;
- &amp;quot;Unknown&amp;quot;&lt;br /&gt;
- &amp;quot;Quit&amp;quot;&lt;br /&gt;
- &amp;quot;Kicked&amp;quot;&lt;br /&gt;
- &amp;quot;Banned&amp;quot;&lt;br /&gt;
- &amp;quot;Bad Connection&amp;quot;&lt;br /&gt;
- &amp;quot;Timed out&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] that left the server.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example gets the quitting client's name and outputs that he is gone&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- we register quitPlayer as a handler for the event&lt;br /&gt;
function quitPlayer ( )&lt;br /&gt;
	-- we store the player's name&lt;br /&gt;
	local quittingPlayerName = getClientName ( source )&lt;br /&gt;
	-- and send the message to the server&lt;br /&gt;
	outputChatBox ( quittingPlayerName .. &amp;quot; has left the server&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerQuit&amp;quot;, getRootElement(), quitPlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerQuit&amp;diff=14518</id>
		<title>OnPlayerQuit</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerQuit&amp;diff=14518"/>
		<updated>2008-01-05T11:06:40Z</updated>

		<summary type="html">&lt;p&gt;Mountnl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
This event is triggered when a player disconnects from the server.&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''': A string containing the reason why the player left.&lt;br /&gt;
Quit reason string can be:&lt;br /&gt;
- &amp;quot;Unknown&amp;quot;&lt;br /&gt;
- &amp;quot;Quit&amp;quot;&lt;br /&gt;
- &amp;quot;Kicked&amp;quot;&lt;br /&gt;
- &amp;quot;Banned&amp;quot;&lt;br /&gt;
- &amp;quot;Bad Connection&amp;quot;&lt;br /&gt;
- &amp;quot;Timed out&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] that left the server.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example gets the quitting client's name and outputs that he is gone&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- we register quitPlayer as a handler for the event&lt;br /&gt;
function quitPlayer ( )&lt;br /&gt;
	-- we store the player's name&lt;br /&gt;
	local quittingPlayerName = getClientName ( source )&lt;br /&gt;
	-- and send him a greeting&lt;br /&gt;
	outputChatBox ( quittingPlayerName .. &amp;quot; has left the server&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerQuit&amp;quot;, getRootElement(), quitPlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>Mountnl</name></author>
	</entry>
</feed>