Fonts and Colors: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 53: Line 53:
= Hex Colors Example =
= Hex Colors Example =


NOTE: To use '''\<font\>''', you must at the beginning of the text put any '''GTA Color'''
NOTE: To use '''hex colors''', 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;">

Revision as of 07:02, 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 hex colors, 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