Graphics::notify: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This function sends notification message for player. Fonts and colors == Syntax == <syntaxhighlight lang="javascript"> mp.game.graphics.notify(String me...")
 
m (Replaced HTML with template)
 
(18 intermediate revisions by 4 users not shown)
Line 1: Line 1:
This function sends notification message for player.
__NOTOC__
This function sends a notification message to the player.


[[Fonts_and_Colors|Fonts and colors]]
You can also use the colour codes seen here: [[Fonts_and_Colors|Fonts and colors]]


== Syntax ==
== Syntax ==
<syntaxhighlight lang="javascript">
<pre>
mp.game.graphics.notify(String message)
mp.game.graphics.notify(message)
</syntaxhighlight>
</pre>


== Example ==
=== Parameters ===
*'''message:''' {{RageType|String}}


<syntaxhighlight lang="javascript">
== Example ==
mp.game.graphics.notify('~w~Hello World~w~')
This example will send a notification 'Hello World' to the player with the word 'Hello' in green.
</syntaxhighlight>


==See Also==
{{ClientsideCode|
{{Player_block}}
<pre>
mp.game.graphics.notify('~g~Hello ~w~World');
</pre>
}}
 
== See More ==
{{Graphics_functions_c}}

Latest revision as of 13:34, 26 October 2018

This function sends a notification message to the player.

You can also use the colour codes seen here: Fonts and colors

Syntax

mp.game.graphics.notify(message)

Parameters

  • message: String

Example

This example will send a notification 'Hello World' to the player with the word 'Hello' in green.

Client-Side
mp.game.graphics.notify('~g~Hello ~w~World');

See More