Fonts and Colors: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 14: Line 14:
* ~w~ = White
* ~w~ = White
* ~h~ = '''Bold Text'''
* ~h~ = '''Bold Text'''
===Additional colors===
https://pastebin.com/9Ssu69fm
Using:
<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">
player.notify('~HUD_COLOUR_MENU_YELLOW~Hello ~HUD_COLOUR_MENU_YELLOW_DARK~World')
</syntaxhighlight>
</div>


'''Can be used for notifications:'''
'''Can be used for notifications:'''
Line 32: Line 20:


== Example ==
== Example ==
<div class="header" style="background-color: #408DAE; color: #FFFFFF; border: 2px solid #408DAE;">
<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>
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div>
Line 37: Line 26:
player.notify('~w~Hello ~b~World')
player.notify('~w~Hello ~b~World')
</syntaxhighlight>
</syntaxhighlight>
</div>
</div><br>
 


<div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;">
<div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;">
Line 44: Line 32:
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
mp.game.graphics.notify('~w~Hello ~b~World')
mp.game.graphics.notify('~w~Hello ~b~World')
</syntaxhighlight>
</div><br>
----
== HUD Colors ==
*[https://pastebin.com/9Ssu69fm Colors]
== 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">
player.notify('~HUD_COLOUR_MENU_YELLOW~Hello ~HUD_COLOUR_MENU_YELLOW_DARK~World')
</syntaxhighlight>
</syntaxhighlight>
</div>
</div>

Revision as of 18:08, 28 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')



HUD Colors


Example

Server-Side
player.notify('~HUD_COLOUR_MENU_YELLOW~Hello ~HUD_COLOUR_MENU_YELLOW_DARK~World')