<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Player%3A%3AoutputChatBox</id>
	<title>Player::outputChatBox - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Player%3A%3AoutputChatBox"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Player::outputChatBox&amp;action=history"/>
	<updated>2026-07-24T21:28:48Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Player::outputChatBox&amp;diff=12008&amp;oldid=prev</id>
		<title>imported&gt;Unknown: /* Syntax */</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Player::outputChatBox&amp;diff=12008&amp;oldid=prev"/>
		<updated>2019-12-01T09:55:41Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Syntax&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This functions writes a chat message to player.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
player.outputChatBox(text);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;text:&amp;#039;&amp;#039;&amp;#039; {{RageType|String}} Text what should be output in player chat.&lt;br /&gt;
&lt;br /&gt;
== Example #1 ==&lt;br /&gt;
This example welcomes player on connect.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot; highlight=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
mp.events.add(`playerJoin`, &lt;br /&gt;
	player =&amp;gt; {&lt;br /&gt;
		player.outputChatBox(`Welcome to the server, ${player.name}!`);&lt;br /&gt;
	}&lt;br /&gt;
);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
== Example #2 ==&lt;br /&gt;
This example just output color texts.&lt;br /&gt;
Note: [[chat.colors]] property should be enabled - if you wanna use that.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot; highlight=&amp;quot;4,5&amp;quot;&amp;gt;&lt;br /&gt;
let red = `#ff0000`;&lt;br /&gt;
let player = mp.players.at(1337); // 1337 is a player id&lt;br /&gt;
if (player) {&lt;br /&gt;
	player.outputChatBox(`!{#dddddd}This is Grey! !{#ffffff}This is White! !{${red}}This is Red!`);&lt;br /&gt;
	player.outputChatBox(` !{255, 0, 0}This is too Red! !{green}This is Green! !{255, 0, 255, 0.5}This is opacity Pink!`);&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Player_block}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Player API]]&lt;br /&gt;
[[Category:Server-side Function]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Unknown</name></author>
	</entry>
</feed>