<?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=Ui%3A%3AsetNotificationMessage</id>
	<title>Ui::setNotificationMessage - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Ui%3A%3AsetNotificationMessage"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Ui::setNotificationMessage&amp;action=history"/>
	<updated>2026-07-24T18:48:02Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Ui::setNotificationMessage&amp;diff=15384&amp;oldid=prev</id>
		<title>imported&gt;Update450: Minor edits</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Ui::setNotificationMessage&amp;diff=15384&amp;oldid=prev"/>
		<updated>2020-12-05T12:22:39Z</updated>

		<summary type="html">&lt;p&gt;Minor edits&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;See [[Notification Pictures]] for a list of notification pictures. Pictures from this link have the same &amp;#039;&amp;#039;&amp;#039;textureDict&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;textureName&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Also some of them needs to be requested with [[Graphics::requestStreamedTextureDict]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.ui.setNotificationMessage(textureDict, textureName, flash, iconType, sender, subject);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Icon types===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;No Icon&amp;#039;&amp;#039;&amp;#039;: 0, 4, 5, 6&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Speech Bubble&amp;#039;&amp;#039;&amp;#039;: 1&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Message&amp;#039;&amp;#039;&amp;#039;: 2&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Friend Request&amp;#039;&amp;#039;&amp;#039;: 3&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Arrow&amp;#039;&amp;#039;&amp;#039;: 7&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;RP&amp;#039;&amp;#039;&amp;#039;: 8&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Money&amp;#039;&amp;#039;&amp;#039;: 9&lt;br /&gt;
&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;textureDict:&amp;#039;&amp;#039;&amp;#039; {{RageType|String}}&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;textureName:&amp;#039;&amp;#039;&amp;#039; {{RageType|String}}&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;flash:&amp;#039;&amp;#039;&amp;#039; {{RageType|Boolean}}&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;iconType:&amp;#039;&amp;#039;&amp;#039; {{RageType|Int}}&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;sender:&amp;#039;&amp;#039;&amp;#039; {{RageType|String}}&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;subject:&amp;#039;&amp;#039;&amp;#039; {{RageType|String}}&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*{{RageType|Int}}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
{{ClientsideCode|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
const notifyWithPicture = () =&amp;gt; {&lt;br /&gt;
	mp.game.ui.setNotificationTextEntry(&amp;#039;STRING&amp;#039;);&lt;br /&gt;
	mp.game.ui.setNotificationMessage(&amp;#039;CHAR_RON&amp;#039;, &amp;#039;CHAR_RON&amp;#039;, false, 2, &amp;#039;New Message&amp;#039;, &amp;#039;Hello World!&amp;#039;);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
notifyWithPicture();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
Output:&lt;br /&gt;
[[File:outputnative.png|200px]]&lt;br /&gt;
&lt;br /&gt;
Values &amp;#039;&amp;#039;&amp;#039;textureDict&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;textureName&amp;#039;&amp;#039;&amp;#039; gives you ability to make custom notifcation pictures using: [[Using_DLC_Packs_with_Custom_Textures]]&lt;br /&gt;
{{ClientsideCode|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
// Before using your custom textures you must request them by this function&lt;br /&gt;
mp.game.graphics.requestStreamedTextureDict(&amp;#039;notifications&amp;#039;, true);&lt;br /&gt;
&lt;br /&gt;
const notifyWithPicture = () =&amp;gt; {&lt;br /&gt;
	mp.game.ui.setNotificationTextEntry(&amp;#039;STRING&amp;#039;);&lt;br /&gt;
	mp.game.ui.setNotificationMessage(&amp;#039;notifications&amp;#039;, &amp;#039;rage&amp;#039;, false, 2, &amp;#039;New Message&amp;#039;, &amp;#039;Hi, now your notifications look ~y~beast&amp;#039;);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
notifyWithPicture();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
Output:&lt;br /&gt;
[[File:outputcustom.png|200px]]&lt;br /&gt;
&lt;br /&gt;
or using in-game sprites and textures (see [[Textures]]):&lt;br /&gt;
{{ClientsideCode|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
// Just in case you should request textureDict&lt;br /&gt;
mp.game.graphics.requestStreamedTextureDict(&amp;#039;commonmenu&amp;#039;, true);&lt;br /&gt;
&lt;br /&gt;
const notifyWithPicture = () =&amp;gt; {&lt;br /&gt;
	mp.game.ui.setNotificationTextEntry(&amp;#039;STRING&amp;#039;);&lt;br /&gt;
	return mp.game.ui.setNotificationMessage(&amp;#039;commonmenu&amp;#039;, &amp;#039;mp_specitem_cash&amp;#039;, false, 9, &amp;#039;New notification!&amp;#039;, &amp;#039;Your account has been charged&amp;#039;);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
notifyWithPicture();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
Output:&lt;br /&gt;
[[File:outputcustom2.png|200px]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Ui_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:UI API]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Update450</name></author>
	</entry>
</feed>