GameTextStyle

From SA-MP Wiki

Jump to: navigation, search


To be used with GameText and textdraws.


Text Colors

  • ~n~ New line
  • ~r~ Red
  • ~g~ Green
  • ~b~ Blue
  • ~w~ White
  • ~y~ Yellow
  • ~p~ Purple
  • ~l~ Black
  • ~h~ Turn text colour lighter (used too much will make your text white, doesn't work on black)

Special Text Letters

  • ~u~ up arrow (grey)
  • ~d~ down arrow (grey)
  • ~<~ left arrow (grey)
  • ~>~ right arrow (grey)
  • ] displays a * symbol (Only in text styles 3, 4 and 5)
  • ~k~ keyboard key mapping (eg ~k~~VEHICLE_TURRETLEFT~ and ~k~~PED_FIREWEAPON~). Look here for a list of keys


Image:32px-Circle-style-warning.png Important Note: Be careful, using too many text colors or special characters in one gametext may crash every player the gametext is shown to. Aditionally, avoid using an uneven usage of the ~ character.

Example: ~~r~Hello, ~g~how are ~y~~you?~


Text Styles

Style 0

Image:Game-text-type0.jpg

Appears for 9 seconds regardless of time setting. Hides textdraws and any other gametext on screen.

Style 1

Image:Game-text-type1.jpg

Fades out after 8 seconds, regardless of time set. If you have a time setting longer than that, it will re-appear after fading out and repeat until the time ends.

Style 2

Image:Game-text-type2.jpg

Does not disappear until the player respawns.

Style 3

Image:Game-text-type3.jpg

Style 4

Image:Game-text-type4.jpg

Style 5

Image:Game-text-type5.jpg

Displays for 3 seconds, regardless of what time you set. Will refuse to be shown if it is 'spammed'.

Style 6

Image:Game-text-type6.jpg

Personal tools
In other languages