Ui::setNotificationMessage: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
Line 1: Line 1:
picName1 &amp; picName2 must match. Possibilities: 'CHAR_SIMEON', 'CHAR_DEFAULT', 'CHAR_FACEBOOK', 'CHAR_SOCIAL_CLUB', 'CHAR_BLOCKED', 'CHAR_ALL_PLAYERS_CONF'<br><br><br>flash is a bool for fading in.<br>iconTypes:<br>1 : Chat Box<br>2 : Email<br>3 : Add Friend Request<br>4 : Nothing<br>5 : Nothing<br>6 : Nothing<br>7 : Right Jumping Arrow<br>8 : RP Icon<br>9 : $ Icon<br><br>'sender' is the very top header. This can be any old string.<br>'subject' is the header under the sender.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.game.ui.setNotificationMessage(picName1, picName2, flash, iconType, sender, subject);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.ui.setNotificationMessage(picName1, picName2, flash, iconType, sender, subject);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''picName1:''' String
*'''picName1:''' String
Line 9: Line 9:
*'''sender:''' String
*'''sender:''' String
*'''subject:''' String
*'''subject:''' String
===Return value===
===Return value===
*'''int'''
*'''int'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
Line 22: Line 24:
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:UI API]]
[[Category:UI API]]
[[Category:TODO: Example]]

Revision as of 21:01, 7 April 2018

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