Fonts

From GTA Network Wiki
Jump to: navigation, search

Fonts

Preset GTA Colors

  • ~r~ = Red
  • ~b~ = Blue
  • ~x~ = Light Blue
  • ~g~ = Green
  • ~t~ = Light Green
  • ~y~ = Yellow
  • ~p~ = Purple
  • ~q~ = Pink
  • ~o~ = Orange
  • ~c~ = Grey
  • ~m~ = DarkGrey
  • ~u~ = Black
  • ~w~ = White

You can find a page of color codes from previous GTA games here.

Example

NAPI.Chat.SendChatMessageToAll("~g~Hello ~b~world");

Result: Hello world

HTML (Hex) Colors

You can use custom hex colors for chat messages by passing it as the sender parameter. This only works for chat messages at the moment. W3School's Color Picker (link) can be used for this.

Example

NAPI.Chat.SendChatMessageToAll("!{#FF0000}Hello world");
NAPI.Chat.SendChatMessageToAll("!{#FF0000}Red !{#0000FF}Blue");
NAPI.Chat.SendChatMessageToAll("!{#FF0000}Red ~g~Blue ~w~Normal");

Result:

  1. Hello world
  2. Red Blue
  3. Red Blue Normal

Fonts

For use with DrawText.

ChaletLondon - ID: 0



HouseScript - ID: 1



Monospace - ID: 2



CharletComprimeColonge - ID: 4



Pricedown - ID: 7

Changelog

Version Description
1.0 Release.