Fonts and Colors: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 52: Line 52:


= Hex Colors Example =
= Hex Colors Example =
NOTE: To use '''<font>''', you must at the beginning of the text put any '''GTA Color'''


<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>
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
player.notify('<font color="#FA00FF">Hello</font> <font color="#00D4FF">World</font>')
player.notify('~w~<font color="#FA00FF">Hello</font> <font color="#00D4FF">World</font>')
</syntaxhighlight>
</syntaxhighlight>
</div>
</div>

Revision as of 07:01, 21 April 2018

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')


Hex Colors Example

NOTE: To use , you must at the beginning of the text put any GTA Color

Server-Side
player.notify('~w~<font color="#FA00FF">Hello</font> <font color="#00D4FF">World</font>')


DrawText Fonts

ChaletLondon - ID: 0



HouseScript - ID: 1



Monospace - ID: 2



CharletComprimeColonge - ID: 4



Pricedown - ID: 7