<?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=Chris+smith</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=Chris+smith"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Chris_smith"/>
	<updated>2026-04-26T11:38:22Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientChatMessage&amp;diff=35310</id>
		<title>OnClientChatMessage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientChatMessage&amp;diff=35310"/>
		<updated>2013-04-08T09:00:01Z</updated>

		<summary type="html">&lt;p&gt;Chris smith: /* Cancel effect */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered when any text is output to chatbox, including MTA's hardcoded messages.&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 text, int r, int g, int b&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' The text that was output to chatbox&lt;br /&gt;
*'''r:''' The amount of red in the color of the text.&lt;br /&gt;
*'''g:''' The amount of green in the color of the text.&lt;br /&gt;
*'''b:''' The amount of blue in the color of the text.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the root element.&lt;br /&gt;
==Cancel effect==&lt;br /&gt;
AS OF 1.3.2&lt;br /&gt;
If this event is [[Event system#Canceling|canceled]], the game's chat system won't deliver the posts. You may use [[outputChatBox]] to send the messages then.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This event doesn't have an example added yet&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
This example doesn't output anything to chatbox if it consists only of numbers&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
[lua]&lt;br /&gt;
function onClientChatMessageHandler(text)&lt;br /&gt;
	if string.match(text,&amp;quot;%d+&amp;quot;) --[[string.match searches for pattern &amp;quot;%d+&amp;quot;, means decimals]] == text then -- if string.match and text itself are the same&lt;br /&gt;
		cancelEvent() -- don't output it&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientChatMessage&amp;quot;, getRootElement(), onClientChatMessageHandler)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
===Client other 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>Chris smith</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientChatMessage&amp;diff=35309</id>
		<title>OnClientChatMessage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientChatMessage&amp;diff=35309"/>
		<updated>2013-04-08T08:59:13Z</updated>

		<summary type="html">&lt;p&gt;Chris smith: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered when any text is output to chatbox, including MTA's hardcoded messages.&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 text, int r, int g, int b&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' The text that was output to chatbox&lt;br /&gt;
*'''r:''' The amount of red in the color of the text.&lt;br /&gt;
*'''g:''' The amount of green in the color of the text.&lt;br /&gt;
*'''b:''' The amount of blue in the color of the text.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the root element.&lt;br /&gt;
==Cancel effect==&lt;br /&gt;
If this event is [[Event system#Canceling|canceled]], the game's chat system won't deliver the posts. You may use [[outputChatBox]] to send the messages then.&lt;br /&gt;
Cancelling this event also means the chat will not appear in the chatbox[[outputServerLog]] - See the second example.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This event doesn't have an example added yet&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
This example doesn't output anything to chatbox if it consists only of numbers&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
[lua]&lt;br /&gt;
function onClientChatMessageHandler(text)&lt;br /&gt;
	if string.match(text,&amp;quot;%d+&amp;quot;) --[[string.match searches for pattern &amp;quot;%d+&amp;quot;, means decimals]] == text then -- if string.match and text itself are the same&lt;br /&gt;
		cancelEvent() -- don't output it&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientChatMessage&amp;quot;, getRootElement(), onClientChatMessageHandler)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
===Client other 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>Chris smith</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:Chris_smith&amp;diff=27374</id>
		<title>User talk:Chris smith</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:Chris_smith&amp;diff=27374"/>
		<updated>2011-10-24T06:42:31Z</updated>

		<summary type="html">&lt;p&gt;Chris smith: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Chris smith</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:Chris_smith&amp;diff=27373</id>
		<title>User talk:Chris smith</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:Chris_smith&amp;diff=27373"/>
		<updated>2011-10-24T06:32:14Z</updated>

		<summary type="html">&lt;p&gt;Chris smith: Created page with &amp;quot;WOW HE IS PRO :O&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;WOW HE IS PRO :O&lt;/div&gt;</summary>
		<author><name>Chris smith</name></author>
	</entry>
</feed>