Fonts and Colors: Difference between revisions
No edit summary |
|||
| Line 49: | Line 49: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</div> | </div> | ||
= Hex 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('<font color="#FA00FF">Hello</font> <font color="#00D4FF">World</font>') | |||
</syntaxhighlight> | |||
</div> | |||
== DrawText Fonts == | == DrawText Fonts == | ||
Revision as of 20:32, 3 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
Server-Side
player.notify('<font color="#FA00FF">Hello</font> <font color="#00D4FF">World</font>')
DrawText Fonts
- These Fonts can be used in drawText
ChaletLondon - ID: 0
HouseScript - ID: 1
Monospace - ID: 2
CharletComprimeColonge - ID: 4
Pricedown - ID: 7














