Fonts and Colors: Difference between revisions

From RAGE Multiplayer Wiki
Line 15: Line 15:
* ~h~ = '''Bold Text'''
* ~h~ = '''Bold Text'''


Can be used for [[Player::notify|Notifications]]


'''Can be used for notifications:'''
* [[Player::notify|Server-Side]]
* [[Graphics::notify|Client-Side]]
== Example ==
<div class="header" style="background-color: #408DAE; color: #FFFFFF; border: 2px solid #408DAE;">
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div>
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
player.notify('~w~Hello ~b~World')
player.notify('~w~Hello ~b~World')
</syntaxhighlight>
</syntaxhighlight>
</div>
<div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;">
<div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div>
<syntaxhighlight lang="javascript">
mp.game.graphics.notify('~w~Hello ~b~World')
</syntaxhighlight>
</div>

Revision as of 15:37, 22 October 2017

GTA Colors

  • ~r~ = Red
  • ~b~ = Blue
  • ~g~ = Green
  • ~y~ = Yellow
  • ~p~ = Purple
  • ~q~ = Pink
  • ~o~ = Orange
  • ~c~ = Grey
  • ~m~ = Darker Grey
  • ~u~ = Black
  • ~n~ = New Line
  • ~s~ = Default White
  • ~w~ = White
  • ~h~ = Bold Text


Can be used for notifications:

Example

Server-Side
player.notify('~w~Hello ~b~World')


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