<?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=Zelev</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=Zelev"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Zelev"/>
	<updated>2026-05-17T12:43:50Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ShowChat&amp;diff=61741</id>
		<title>ShowChat</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ShowChat&amp;diff=61741"/>
		<updated>2018-12-24T18:27:59Z</updated>

		<summary type="html">&lt;p&gt;Zelev: Undo revision 61740 by Zelev (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}} &lt;br /&gt;
This function is used to show or hide the player's chat.&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;
===Required Arguments=== &lt;br /&gt;
*'''show:''' A boolean value determining whether to show (''true'') or hide (''false'') the chat.&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;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The [[player]] whose chat is to be hidden or shown.&lt;br /&gt;
*'''show:''' A boolean value determining whether to show (''true'') or hide (''false'') the chat.&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;
This example toggle's the player's chat when they press the &amp;quot;'''i'''&amp;quot; key.&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>Zelev</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ShowChat&amp;diff=61740</id>
		<title>ShowChat</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ShowChat&amp;diff=61740"/>
		<updated>2018-12-24T18:14:39Z</updated>

		<summary type="html">&lt;p&gt;Zelev: Spanish translated version/ versión traducida al español.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}} &lt;br /&gt;
Esta función es usada para mostrar y/o ocultar el chat del jugador.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Cliente&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;
===Argumentos Requeridos=== &lt;br /&gt;
*'''show:''' Un valor boolean determinando si mostrar (''true'') o ocultar (''false'') el chat.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Se vuelve ''true'' si el chat del jugador fue mostrado o ocultado con éxito, ''false'' de lo contrario.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Servidor&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;
===Argumentos Requeridos=== &lt;br /&gt;
*'''thePlayer:''' El [[player]] al cual se le muestra o oculta el chat.&lt;br /&gt;
*'''show:''' Un valor boolean determinando si mostrar (''true'') o ocultar (''false'') el chat.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Se vuelve ''true'' si el chat del jugador fue mostrado o ocultado con éxito, ''false'' de lo contrario.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Cliente&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Este ejemplo alterna (muestra o oculta) el chat del jugador cuando presiona la tecla &amp;quot;'''i'''&amp;quot;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--El siguiente ejemplo es para todas las versiones hasta la 1.4:&lt;br /&gt;
local isChatVisible = true --Asumamos que el chat es visible tan pronto inicie el resource.&lt;br /&gt;
&lt;br /&gt;
function chat(key, keyState)&lt;br /&gt;
    if isChatVisible then --Revisa si el chat está visible.&lt;br /&gt;
        showChat(false) --Si lo está, ocúltalo.&lt;br /&gt;
        isChatVisible = false&lt;br /&gt;
    else&lt;br /&gt;
        showChat(true) --Si no lo está, muéstralo.&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) --Haz una tecla de enlace (bind, bindea) para inciar la función tan pronto un jugador presione la tecla 'i'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--El siguiente ejemplo es para las versiones 1.4 en adelante:&lt;br /&gt;
function chat(key, keyState)&lt;br /&gt;
    if isChatVisible() then --Revisa si el chat está visible.&lt;br /&gt;
        showChat(false) --Si lo está, ocúltalo.&lt;br /&gt;
    else&lt;br /&gt;
        showChat(true) --Si no lo está, muéstralo.&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) --Haz una tecla de enlace (bind, bindea) para iniciar la función tan pronto un jugador presione la tecla 'i'&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver también==&lt;br /&gt;
{{Server functions}}&lt;/div&gt;</summary>
		<author><name>Zelev</name></author>
	</entry>
</feed>