<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/AR/showChat?action=history&amp;feed=atom</id>
	<title>AR/showChat - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/AR/showChat?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/showChat&amp;action=history"/>
	<updated>2026-05-17T02:35:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/showChat&amp;diff=47460&amp;oldid=prev</id>
		<title>Jaber: Created page with &quot;__NOTOC__  {{Server client function}}  هذه الوظيفة تستخدم لاخفاء واظهار الكلام بالشات.  ==Syntax== &lt;section name=&quot;Client&quot; class=&quot;client...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/showChat&amp;diff=47460&amp;oldid=prev"/>
		<updated>2016-05-05T19:24:27Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{Server client function}}  هذه الوظيفة تستخدم لاخفاء واظهار الكلام بالشات.  ==Syntax== &amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}} &lt;br /&gt;
هذه الوظيفة تستخدم لاخفاء واظهار الكلام بالشات.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool showChat ( bool show )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===شرح الارقمنات=== &lt;br /&gt;
*'''show:''' الظهور true = اظهار الشات , false = اخفاء الشات.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player's chat was shown or hidden successfully, ''false'' otherwise.&lt;br /&gt;
&amp;lt;/section&amp;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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool showChat ( player thePlayer, bool show )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===شرح الارقمنات=== &lt;br /&gt;
*'''thePlayer:''' الاعب الذي تبي تخفي له الشات.&lt;br /&gt;
*'''show:''' الظهور true = اظهار الشات , false = اخفاء الشات.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player's chat was shown or hidden successfully, ''false'' otherwise.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
هذا المثال يخفي الشات عند الضغط على حر ف 'i'&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--This example below is for all versions until 1.4:&lt;br /&gt;
local isChatVisible = true --Let's assume the chat is visible as soon as the resource starts.&lt;br /&gt;
&lt;br /&gt;
function chat(key, keyState)&lt;br /&gt;
    if isChatVisible then --Check or the chat is visible.&lt;br /&gt;
        showChat(false) --If it is, hide it.&lt;br /&gt;
        isChatVisible = false&lt;br /&gt;
    else&lt;br /&gt;
        showChat(true) --If it is not, show it.&lt;br /&gt;
        isChatVisible = true&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
bindKey(&amp;quot;i&amp;quot;, &amp;quot;down&amp;quot;, chat) --Make a bind key to start the function as soon as a player presses the key 'i'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--This example below is for version 1.4 and up:&lt;br /&gt;
function chat(key, keyState)&lt;br /&gt;
    if isChatVisible() then --Check or the chat is visible.&lt;br /&gt;
        showChat(false) --If it is, hide it.&lt;br /&gt;
    else&lt;br /&gt;
        showChat(true) --If it is not, show it.&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
bindKey(&amp;quot;i&amp;quot;, &amp;quot;down&amp;quot;, chat) --Make a bind key to start the function as soon as a player presses the key 'i'&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;
{{Server functions}}&lt;/div&gt;</summary>
		<author><name>Jaber</name></author>
	</entry>
</feed>