<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://g1r-mp.com/wiki/index.php?action=history&amp;feed=atom&amp;title=OutputChatBox</id>
	<title>OutputChatBox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://g1r-mp.com/wiki/index.php?action=history&amp;feed=atom&amp;title=OutputChatBox"/>
	<link rel="alternate" type="text/html" href="https://g1r-mp.com/wiki/index.php?title=OutputChatBox&amp;action=history"/>
	<updated>2026-08-05T04:54:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://g1r-mp.com/wiki/index.php?title=OutputChatBox&amp;diff=90&amp;oldid=prev</id>
		<title>QCherry: Automatyczna aktualizacja dokumentacji funkcji</title>
		<link rel="alternate" type="text/html" href="https://g1r-mp.com/wiki/index.php?title=OutputChatBox&amp;diff=90&amp;oldid=prev"/>
		<updated>2026-08-04T12:45:13Z</updated>

		<summary type="html">&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: outputChatBox. --&amp;gt;&lt;br /&gt;
= outputChatBox =&lt;br /&gt;
Sends a chat message to all players, one player, or a table of player identifiers.&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 outputChatBox(string message [, mixed visibleTo = root [, int red = 231 [, int green = 217 [, int blue = 176 [, bool colorCoded = false]]]]])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;message&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || The message to send.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;visibleTo&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;root{{!}}int{{!}}table&amp;lt;/code&amp;gt; || no || Broadcast target: root/nil, one player id, or a table of player ids.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;red&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || no || Red color channel from 0 to 255.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;green&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || no || Green color channel from 0 to 255.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;blue&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || no || Blue color channel from 0 to 255.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;colorCoded&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;bool&amp;lt;/code&amp;gt; || no || Whether inline color codes should be interpreted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the message is accepted for delivery; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Send a green message to nearby players:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
local recipients = getPlayersInRange(playerId, 25, true)&lt;br /&gt;
outputChatBox(&amp;quot;[Local] &amp;quot; .. message, recipients, 160, 220, 160, false)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Chat Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</summary>
		<author><name>QCherry</name></author>
	</entry>
</feed>