Ui::setNotificationMessage: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
Line 13: Line 13:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
    mp.game.ui.setNotificationTextEntry("STRING");
    mp.game.ui.setNotificationMessage("CHAR_BLOCKED", "CHAR_BLOCKED", false, 4, 'title', 'message');
    mp.game.ui.drawNotification(true, false);
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Ui_s_function_c}}
{{Ui_s_function_c}}

Revision as of 21:00, 7 April 2018

picName1 & picName2 must match. Possibilities: 'CHAR_SIMEON', 'CHAR_DEFAULT', 'CHAR_FACEBOOK', 'CHAR_SOCIAL_CLUB', 'CHAR_BLOCKED', 'CHAR_ALL_PLAYERS_CONF'


flash is a bool for fading in.
iconTypes:
1 : Chat Box
2 : Email
3 : Add Friend Request
4 : Nothing
5 : Nothing
6 : Nothing
7 : Right Jumping Arrow
8 : RP Icon
9 : $ Icon

'sender' is the very top header. This can be any old string.
'subject' is the header under the sender.

Syntax

mp.game.ui.setNotificationMessage(picName1, picName2, flash, iconType, sender, subject);

Required Arguments

  • picName1: String
  • picName2: String
  • flash: Boolean
  • iconType: int
  • sender: String
  • subject: String

Return value

  • int

Example

    mp.game.ui.setNotificationTextEntry("STRING");
    mp.game.ui.setNotificationMessage("CHAR_BLOCKED", "CHAR_BLOCKED", false, 4, 'title', 'message');
    mp.game.ui.drawNotification(true, false);

See also