<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=Ui%3A%3AaddTextComponentSubstringPlayerName</id>
	<title>Ui::addTextComponentSubstringPlayerName - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=Ui%3A%3AaddTextComponentSubstringPlayerName"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Ui::addTextComponentSubstringPlayerName&amp;action=history"/>
	<updated>2026-06-04T18:45:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Ui::addTextComponentSubstringPlayerName&amp;diff=9197&amp;oldid=prev</id>
		<title>Brophy at 16:30, 12 February 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Ui::addTextComponentSubstringPlayerName&amp;diff=9197&amp;oldid=prev"/>
		<updated>2018-02-12T16:30:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:30, 12 February 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;� Description :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; Processes a string and removes the player name(max len 99)&amp;lt;br&amp;gt; You can use this function to create notifications/subtitles&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Usage(Colors) :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; ~r~ = red&amp;lt;br&amp;gt; ~y~ = yellow&amp;lt;br&amp;gt; ~g~ = green&amp;lt;br&amp;gt; ~b~ = light blue&amp;lt;br&amp;gt; ~w~ = white&amp;lt;br&amp;gt; ~p~ = purple&amp;lt;br&amp;gt; ~n~ = new line&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Example (C++):&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;void ShowNotification(char *text)  &amp;lt;br&amp;gt;{ &amp;lt;br&amp;gt;        UI::_SET_NOTIFICATION_TEXT_ENTRY(&#039;STRING&#039;); &amp;lt;br&amp;gt;        UI::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text); &amp;lt;br&amp;gt;        UI::_DRAW_NOTIFICATION(FALSE, FALSE); // if first param = 1, the message flashes 1 or 2 times&amp;lt;br&amp;gt;}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;� Colors example : &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;string red = &#039;~r~Red test&#039;;&amp;lt;br&amp;gt;string white_and_yellow = &#039;~w~White and ~y~yellow&#039;;&amp;lt;br&amp;gt;string text_with_double_line = &#039;First line.~n~Second line&#039;;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;You can also call fonts which are defined in: common/data/ui/[[Fontmap.xml|fontmap.xml]], see example below&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;This native (along with 0x5F68520888E69014 and 0x94CF4AC034C9C986) do not actually filter anything. They simply add the provided text (as of 944)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;� Description :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; Processes a string and removes the player name(max len 99)&amp;lt;br&amp;gt; You can use this function to create notifications/subtitles&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Usage(Colors) :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; ~r~ = red&amp;lt;br&amp;gt; ~y~ = yellow&amp;lt;br&amp;gt; ~g~ = green&amp;lt;br&amp;gt; ~b~ = light blue&amp;lt;br&amp;gt; ~w~ = white&amp;lt;br&amp;gt; ~p~ = purple&amp;lt;br&amp;gt; ~n~ = new line&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Example (C++):&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;void ShowNotification(char *text)  &amp;lt;br&amp;gt;{ &amp;lt;br&amp;gt;        UI::_SET_NOTIFICATION_TEXT_ENTRY(&#039;STRING&#039;); &amp;lt;br&amp;gt;        UI::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text); &amp;lt;br&amp;gt;        UI::_DRAW_NOTIFICATION(FALSE, FALSE); // if first param = 1, the message flashes 1 or 2 times&amp;lt;br&amp;gt;}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;� Colors example : &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;string red = &#039;~r~Red test&#039;;&amp;lt;br&amp;gt;string white_and_yellow = &#039;~w~White and ~y~yellow&#039;;&amp;lt;br&amp;gt;string text_with_double_line = &#039;First line.~n~Second line&#039;;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;You can also call fonts which are defined in: common/data/ui/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;[[Fontmap.xml|fontmap.xml]]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;, along with &#039;html&#039; style colours and font sizes&lt;/ins&gt;, see example below&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;This native (along with 0x5F68520888E69014 and 0x94CF4AC034C9C986) do not actually filter anything. They simply add the provided text (as of 944)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Syntax==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Syntax==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.ui.addTextComponentSubstringPlayerName(text);&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.ui.addTextComponentSubstringPlayerName(text);&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Example==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Example==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;mp.game.ui.addTextComponentSubstringPlayerName(`&amp;lt;font face=&quot;ChaletComprime-CologneSixty&quot;&amp;gt;font&amp;lt;/font&amp;gt; renders fine`);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;mp.game.ui.addTextComponentSubstringPlayerName(`&amp;lt;font face=&quot;ChaletComprime-CologneSixty&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot; size=&quot;16&quot; color=&quot;rgb(123,213,123)&lt;/ins&gt;&quot;&amp;gt;font&amp;lt;/font&amp;gt; renders fine`);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==See also==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==See also==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key rmp_wiki:diff::1.12:old-9196:rev-9197 --&gt;
&lt;/table&gt;</summary>
		<author><name>Brophy</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Ui::addTextComponentSubstringPlayerName&amp;diff=9196&amp;oldid=prev</id>
		<title>Brophy at 16:21, 12 February 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Ui::addTextComponentSubstringPlayerName&amp;diff=9196&amp;oldid=prev"/>
		<updated>2018-02-12T16:21:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:21, 12 February 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;� Description :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; Processes a string and removes the player name(max len 99)&amp;lt;br&amp;gt; You can use this function to create notifications/subtitles&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Usage(Colors) :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; ~r~ = red&amp;lt;br&amp;gt; ~y~ = yellow&amp;lt;br&amp;gt; ~g~ = green&amp;lt;br&amp;gt; ~b~ = light blue&amp;lt;br&amp;gt; ~w~ = white&amp;lt;br&amp;gt; ~p~ = purple&amp;lt;br&amp;gt; ~n~ = new line&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Example (C++):&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;void ShowNotification(char *text)  &amp;lt;br&amp;gt;{ &amp;lt;br&amp;gt;        UI::_SET_NOTIFICATION_TEXT_ENTRY(&#039;STRING&#039;); &amp;lt;br&amp;gt;        UI::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text); &amp;lt;br&amp;gt;        UI::_DRAW_NOTIFICATION(FALSE, FALSE); // if first param = 1, the message flashes 1 or 2 times&amp;lt;br&amp;gt;}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;� Colors example : &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;string red = &#039;~r~Red test&#039;;&amp;lt;br&amp;gt;string white_and_yellow = &#039;~w~White and ~y~yellow&#039;;&amp;lt;br&amp;gt;string text_with_double_line = &#039;First line.~n~Second line&#039;;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;You can also call fonts which are defined in: common/data/ui/fontmap.xml, see example below&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;This native (along with 0x5F68520888E69014 and 0x94CF4AC034C9C986) do not actually filter anything. They simply add the provided text (as of 944)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;� Description :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; Processes a string and removes the player name(max len 99)&amp;lt;br&amp;gt; You can use this function to create notifications/subtitles&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Usage(Colors) :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; ~r~ = red&amp;lt;br&amp;gt; ~y~ = yellow&amp;lt;br&amp;gt; ~g~ = green&amp;lt;br&amp;gt; ~b~ = light blue&amp;lt;br&amp;gt; ~w~ = white&amp;lt;br&amp;gt; ~p~ = purple&amp;lt;br&amp;gt; ~n~ = new line&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Example (C++):&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;void ShowNotification(char *text)  &amp;lt;br&amp;gt;{ &amp;lt;br&amp;gt;        UI::_SET_NOTIFICATION_TEXT_ENTRY(&#039;STRING&#039;); &amp;lt;br&amp;gt;        UI::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text); &amp;lt;br&amp;gt;        UI::_DRAW_NOTIFICATION(FALSE, FALSE); // if first param = 1, the message flashes 1 or 2 times&amp;lt;br&amp;gt;}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;� Colors example : &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;string red = &#039;~r~Red test&#039;;&amp;lt;br&amp;gt;string white_and_yellow = &#039;~w~White and ~y~yellow&#039;;&amp;lt;br&amp;gt;string text_with_double_line = &#039;First line.~n~Second line&#039;;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;You can also call fonts which are defined in: common/data/ui/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Fontmap.xml|&lt;/ins&gt;fontmap.xml&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]&lt;/ins&gt;, see example below&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;This native (along with 0x5F68520888E69014 and 0x94CF4AC034C9C986) do not actually filter anything. They simply add the provided text (as of 944)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Syntax==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Syntax==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.ui.addTextComponentSubstringPlayerName(text);&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.ui.addTextComponentSubstringPlayerName(text);&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key rmp_wiki:diff::1.12:old-9194:rev-9196 --&gt;
&lt;/table&gt;</summary>
		<author><name>Brophy</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Ui::addTextComponentSubstringPlayerName&amp;diff=9194&amp;oldid=prev</id>
		<title>Brophy: Added example of usage with different fonts</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Ui::addTextComponentSubstringPlayerName&amp;diff=9194&amp;oldid=prev"/>
		<updated>2018-02-12T16:18:18Z</updated>

		<summary type="html">&lt;p&gt;Added example of usage with different fonts&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:18, 12 February 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;� Description :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; Processes a string and removes the player name(max len 99)&amp;lt;br&amp;gt; You can use this function to create notifications/subtitles&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Usage(Colors) :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; ~r~ = red&amp;lt;br&amp;gt; ~y~ = yellow&amp;lt;br&amp;gt; ~g~ = green&amp;lt;br&amp;gt; ~b~ = light blue&amp;lt;br&amp;gt; ~w~ = white&amp;lt;br&amp;gt; ~p~ = purple&amp;lt;br&amp;gt; ~n~ = new line&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Example (C++):&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;void ShowNotification(char *text)  &amp;lt;br&amp;gt;{ &amp;lt;br&amp;gt;        UI::_SET_NOTIFICATION_TEXT_ENTRY(&#039;STRING&#039;); &amp;lt;br&amp;gt;        UI::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text); &amp;lt;br&amp;gt;        UI::_DRAW_NOTIFICATION(FALSE, FALSE); // if first param = 1, the message flashes 1 or 2 times&amp;lt;br&amp;gt;}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;� Colors example : &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;string red = &#039;~r~Red test&#039;;&amp;lt;br&amp;gt;string white_and_yellow = &#039;~w~White and ~y~yellow&#039;;&amp;lt;br&amp;gt;string text_with_double_line = &#039;First line.~n~Second line&#039;;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;This native (along with 0x5F68520888E69014 and 0x94CF4AC034C9C986) do not actually filter anything. They simply add the provided text (as of 944)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;� Description :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; Processes a string and removes the player name(max len 99)&amp;lt;br&amp;gt; You can use this function to create notifications/subtitles&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Usage(Colors) :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; ~r~ = red&amp;lt;br&amp;gt; ~y~ = yellow&amp;lt;br&amp;gt; ~g~ = green&amp;lt;br&amp;gt; ~b~ = light blue&amp;lt;br&amp;gt; ~w~ = white&amp;lt;br&amp;gt; ~p~ = purple&amp;lt;br&amp;gt; ~n~ = new line&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Example (C++):&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;void ShowNotification(char *text)  &amp;lt;br&amp;gt;{ &amp;lt;br&amp;gt;        UI::_SET_NOTIFICATION_TEXT_ENTRY(&#039;STRING&#039;); &amp;lt;br&amp;gt;        UI::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text); &amp;lt;br&amp;gt;        UI::_DRAW_NOTIFICATION(FALSE, FALSE); // if first param = 1, the message flashes 1 or 2 times&amp;lt;br&amp;gt;}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;� Colors example : &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;string red = &#039;~r~Red test&#039;;&amp;lt;br&amp;gt;string white_and_yellow = &#039;~w~White and ~y~yellow&#039;;&amp;lt;br&amp;gt;string text_with_double_line = &#039;First line.~n~Second line&#039;;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;You can also call fonts which are defined in: common/data/ui/fontmap.xml, see example below&lt;/ins&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;This native (along with 0x5F68520888E69014 and 0x94CF4AC034C9C986) do not actually filter anything. They simply add the provided text (as of 944)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Syntax==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Syntax==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.ui.addTextComponentSubstringPlayerName(text);&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.ui.addTextComponentSubstringPlayerName(text);&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Example==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Example==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/ todo&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mp.game.ui.addTextComponentSubstringPlayerName(`&amp;lt;font face=&quot;ChaletComprime-CologneSixty&quot;&amp;gt;font&amp;lt;&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;font&amp;gt; renders fine`);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==See also==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==See also==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key rmp_wiki:diff::1.12:old-5153:rev-9194 --&gt;
&lt;/table&gt;</summary>
		<author><name>Brophy</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Ui::addTextComponentSubstringPlayerName&amp;diff=5153&amp;oldid=prev</id>
		<title>StreetGT at 14:54, 20 May 2017</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Ui::addTextComponentSubstringPlayerName&amp;diff=5153&amp;oldid=prev"/>
		<updated>2017-05-20T14:54:41Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:54, 20 May 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l13&quot;&gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Ui_s_function_c}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Ui_s_function_c}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Clientside API]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Clientside API]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:UI API]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:TODO: Example]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:TODO: Example]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key rmp_wiki:diff::1.12:old-3395:rev-5153 --&gt;
&lt;/table&gt;</summary>
		<author><name>StreetGT</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Ui::addTextComponentSubstringPlayerName&amp;diff=3395&amp;oldid=prev</id>
		<title>Marty uploader: yay</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Ui::addTextComponentSubstringPlayerName&amp;diff=3395&amp;oldid=prev"/>
		<updated>2017-05-06T21:33:41Z</updated>

		<summary type="html">&lt;p&gt;yay&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:33, 6 May 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;� Description :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; Processes a string and removes the player name(max len 99)&amp;lt;br&amp;gt; You can use this function to create notifications/subtitles&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Usage(Colors) :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; ~r~ = red&amp;lt;br&amp;gt; ~y~ = yellow&amp;lt;br&amp;gt; ~g~ = green&amp;lt;br&amp;gt; ~b~ = light blue&amp;lt;br&amp;gt; ~w~ = white&amp;lt;br&amp;gt; ~p~ = purple&amp;lt;br&amp;gt; ~n~ = new line&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Example (C++):&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;void ShowNotification(char *text)  &amp;lt;br&amp;gt;{ &amp;lt;br&amp;gt;        UI::_SET_NOTIFICATION_TEXT_ENTRY(&amp;#039;STRING&amp;#039;); &amp;lt;br&amp;gt;        UI::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text); &amp;lt;br&amp;gt;        UI::_DRAW_NOTIFICATION(FALSE, FALSE); // if first param = 1, the message flashes 1 or 2 times&amp;lt;br&amp;gt;}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;� Colors example : &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;string red = &amp;#039;~r~Red test&amp;#039;;&amp;lt;br&amp;gt;string white_and_yellow = &amp;#039;~w~White and ~y~yellow&amp;#039;;&amp;lt;br&amp;gt;string text_with_double_line = &amp;#039;First line.~n~Second line&amp;#039;;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;This native (along with 0x5F68520888E69014 and 0x94CF4AC034C9C986) do not actually filter anything. They simply add the provided text (as of 944)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;� Description :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; Processes a string and removes the player name(max len 99)&amp;lt;br&amp;gt; You can use this function to create notifications/subtitles&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Usage(Colors) :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; ~r~ = red&amp;lt;br&amp;gt; ~y~ = yellow&amp;lt;br&amp;gt; ~g~ = green&amp;lt;br&amp;gt; ~b~ = light blue&amp;lt;br&amp;gt; ~w~ = white&amp;lt;br&amp;gt; ~p~ = purple&amp;lt;br&amp;gt; ~n~ = new line&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Example (C++):&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;void ShowNotification(char *text)  &amp;lt;br&amp;gt;{ &amp;lt;br&amp;gt;        UI::_SET_NOTIFICATION_TEXT_ENTRY(&amp;#039;STRING&amp;#039;); &amp;lt;br&amp;gt;        UI::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text); &amp;lt;br&amp;gt;        UI::_DRAW_NOTIFICATION(FALSE, FALSE); // if first param = 1, the message flashes 1 or 2 times&amp;lt;br&amp;gt;}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;� Colors example : &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;string red = &amp;#039;~r~Red test&amp;#039;;&amp;lt;br&amp;gt;string white_and_yellow = &amp;#039;~w~White and ~y~yellow&amp;#039;;&amp;lt;br&amp;gt;string text_with_double_line = &amp;#039;First line.~n~Second line&amp;#039;;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;This native (along with 0x5F68520888E69014 and 0x94CF4AC034C9C986) do not actually filter anything. They simply add the provided text (as of 944)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Syntax==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Syntax==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&quot;javascript&quot;&amp;gt;ui.addTextComponentSubstringPlayerName(text);&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&quot;javascript&quot;&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mp.game.&lt;/ins&gt;ui.addTextComponentSubstringPlayerName(text);&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Required Arguments ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Required Arguments ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;text:&amp;#039;&amp;#039;&amp;#039; String&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;text:&amp;#039;&amp;#039;&amp;#039; String&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Example==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Example==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;todo&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;// &lt;/ins&gt;todo&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==See also==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==See also==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Ui_function_c&lt;/del&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Ui_s_function_c&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Clientside API]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Clientside API]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:TODO: Example]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:TODO: Example]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key rmp_wiki:diff::1.12:old-829:rev-3395 --&gt;
&lt;/table&gt;</summary>
		<author><name>Marty uploader</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Ui::addTextComponentSubstringPlayerName&amp;diff=829&amp;oldid=prev</id>
		<title>Marty uploader: yay</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Ui::addTextComponentSubstringPlayerName&amp;diff=829&amp;oldid=prev"/>
		<updated>2017-05-06T19:54:29Z</updated>

		<summary type="html">&lt;p&gt;yay&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;� Description :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; Processes a string and removes the player name(max len 99)&amp;lt;br&amp;gt; You can use this function to create notifications/subtitles&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Usage(Colors) :&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; ~r~ = red&amp;lt;br&amp;gt; ~y~ = yellow&amp;lt;br&amp;gt; ~g~ = green&amp;lt;br&amp;gt; ~b~ = light blue&amp;lt;br&amp;gt; ~w~ = white&amp;lt;br&amp;gt; ~p~ = purple&amp;lt;br&amp;gt; ~n~ = new line&amp;lt;br&amp;gt;--------------------------------------------------------------------&amp;lt;br&amp;gt;� Example (C++):&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;void ShowNotification(char *text)  &amp;lt;br&amp;gt;{ &amp;lt;br&amp;gt;        UI::_SET_NOTIFICATION_TEXT_ENTRY(&amp;#039;STRING&amp;#039;); &amp;lt;br&amp;gt;        UI::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text); &amp;lt;br&amp;gt;        UI::_DRAW_NOTIFICATION(FALSE, FALSE); // if first param = 1, the message flashes 1 or 2 times&amp;lt;br&amp;gt;}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;� Colors example : &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;string red = &amp;#039;~r~Red test&amp;#039;;&amp;lt;br&amp;gt;string white_and_yellow = &amp;#039;~w~White and ~y~yellow&amp;#039;;&amp;lt;br&amp;gt;string text_with_double_line = &amp;#039;First line.~n~Second line&amp;#039;;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;This native (along with 0x5F68520888E69014 and 0x94CF4AC034C9C986) do not actually filter anything. They simply add the provided text (as of 944)&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;ui.addTextComponentSubstringPlayerName(text);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;text:&amp;#039;&amp;#039;&amp;#039; String&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Undefined&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See also==&lt;br /&gt;
{{Ui_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>Marty uploader</name></author>
	</entry>
</feed>