Ui::drawNotification: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Draws a notification above the map and returns the notifications handle<br><br>Color syntax:<br>~r~ = Red<br>~b~ = Blue<br>~g~ = Green<br>~y~ = Yellow<br>~p~ = Purple<br>~o~ = Orange<br>~c~ = Grey<br>~m~ = Darker Grey<br>~u~ = Black<br>~n~ = New Line<br>~s~ = Default White<br>~w~ = White<br>~h~ = Bold Text<br>~nrt~ = ???<br><br>Special characters:<br>� = Rockstar Verified Icon (U+00A6:Broken Bar - Alt+0166)<br>? = Rockstar Icon (U+00F7:Division Sign - Alt+0247)<br>? = Rockstar Icon 2 (U+2211:N-Ary Summation)<br><br>Example C#:<br>            Function.Call(Hash._ADD_TEXT_COMPONENT_STRING3, 'Now I need you to bring the ~b~vehicle~w~ back to me!');
Draws a notification above the map and returns the notifications handle<br><br>Color syntax:<br>~r~ = Red<br>~b~ = Blue<br>~g~ = Green<br>~y~ = Yellow<br>~p~ = Purple<br>~o~ = Orange<br>~c~ = Grey<br>~m~ = Darker Grey<br>~u~ = Black<br>~n~ = New Line<br>~s~ = Default White<br>~w~ = White<br>~h~ = Bold Text<br>~nrt~ = ???<br><br>Special characters:<br>� = Rockstar Verified Icon (U+00A6:Broken Bar - Alt+0166)<br>? = Rockstar Icon (U+00F7:Division Sign - Alt+0247)<br>? = Rockstar Icon 2 (U+2211:N-Ary Summation)<br><br>Example C#:<br>            Function.Call(Hash._ADD_TEXT_COMPONENT_STRING3, 'Now I need you to bring the ~b~vehicle~w~ back to me!');
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">ui.drawNotification(blink, p1);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.ui.drawNotification(blink, p1);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''blink:''' Boolean
*'''blink:''' Boolean
Line 9: Line 9:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Ui_function_c}}
{{Ui_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:UI API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 14:51, 20 May 2017

Draws a notification above the map and returns the notifications handle

Color syntax:
~r~ = Red
~b~ = Blue
~g~ = Green
~y~ = Yellow
~p~ = Purple
~o~ = Orange
~c~ = Grey
~m~ = Darker Grey
~u~ = Black
~n~ = New Line
~s~ = Default White
~w~ = White
~h~ = Bold Text
~nrt~ = ???

Special characters:
� = Rockstar Verified Icon (U+00A6:Broken Bar - Alt+0166)
? = Rockstar Icon (U+00F7:Division Sign - Alt+0247)
? = Rockstar Icon 2 (U+2211:N-Ary Summation)

Example C#:
Function.Call(Hash._ADD_TEXT_COMPONENT_STRING3, 'Now I need you to bring the ~b~vehicle~w~ back to me!');

Syntax

mp.game.ui.drawNotification(blink, p1);

Required Arguments

  • blink: Boolean
  • p1: Boolean

Return value

  • int

Example

// todo

See also