Graphics::notify: Difference between revisions

From RAGE Multiplayer Wiki
(Cleaned up page)
m (Replaced HTML with template)
 
Line 15: Line 15:
This example will send a notification 'Hello World' to the player with the word 'Hello' in green.
This example will send a notification 'Hello World' to the player with the word 'Hello' in green.


<div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;">
{{ClientsideCode|
<div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div>
<pre>
<pre>
mp.game.graphics.notify('~g~Hello ~w~World');
mp.game.graphics.notify('~g~Hello ~w~World');
</pre>
</pre>
</div>
}}


== See More ==
== See More ==
{{Graphics_functions_c}}
{{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