GameText Styles
From SA-MP Wiki
(Difference between revisions)
Revision as of 14:04, 19 April 2014 RoboN1X (Talk | contribs) (→Special Text Letters) ← Previous diff |
Revision as of 16:31, 15 February 2015 Vince (Talk | contribs) (formatting) Next diff → |
||
Line 7: | Line 7: | ||
== Text Colors == | == Text Colors == | ||
- | *~n~ New line | + | *<code>~n~</code> New line |
- | + | *<code>~r~</code> Red | |
- | *~r~ Red | + | *<code>~g~</code> Green |
- | + | *<code>~b~</code> Blue | |
- | *~g~ Green | + | *<code>~w~</code> White |
- | + | *<code>~y~</code> Yellow | |
- | *~b~ Blue | + | *<code>~p~</code> Purple |
- | + | *<code>~l~</code> Black (lower case L) | |
- | *~w~ White | + | *<code>~h~</code> Turn text color lighter (used too much will make your text white, doesn't work on black) |
- | + | ||
- | *~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 == | == Special Text Letters == | ||
+ | *<code>~u~</code> up arrow (gray) | ||
+ | *<code>~d~</code> down arrow (gray) | ||
+ | *<code>~<~</code> left arrow (gray) | ||
+ | *<code>~>~</code> right arrow (gray) | ||
+ | *<code>]</code> displays a * symbol (Only in text styles 3, 4 and 5) | ||
+ | *<code>~k~</code> keyboard key mapping (e.g. <code>~k~~VEHICLE_TURRETLEFT~</code> and <code>~k~~PED_FIREWEAPON~</code>). Look [[Keys|here]] for a list of keys | ||
- | *~u~ up arrow (grey) | ||
- | *~d~ down arrow (grey) | + | {{note2|Be careful, using too many text colors or special characters in one gametext may crash every player the gametext is shown to. Additionally, avoid using an uneven usage of the '''~''' character. |
- | + | ||
- | *~<~ 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 [[Keys|here]] for a list of keys | + | |
- | + | ||
- | {{note2|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: <u>'''~'''</u>~r~Hello, ~g~how are ~y~<u>'''~'''</u>you?<u>'''~'''</u>}} | Example: <u>'''~'''</u>~r~Hello, ~g~how are ~y~<u>'''~'''</u>you?<u>'''~'''</u>}} | ||
== Text Styles == | == Text Styles == | ||
- | + | <gallery> | |
- | === Style 0 === | + | Image:Game-text-type0.jpg|'''Style 0'''<br>Appears for 9 seconds regardless of time setting. Hides textdraws and any other gametext on screen. |
- | + | Image:Game-text-type1.jpg|'''Style 1'''<br>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. | |
- | [[Image:Game-text-type0.jpg]] | + | Image:Game-text-type2.jpg|'''Style 2'''<br>Does not disappear until the player respawns. |
- | + | Image:Game-text-type3.jpg|'''Style 3''' | |
- | Appears for 9 seconds regardless of time setting. Hides textdraws and any other gametext on screen. | + | Image:Game-text-type4.jpg|'''Style 4''' |
- | + | Image:Game-text-type5.jpg|'''Style 5'''<br>Displays for 3 seconds, regardless of what time you set. Will refuse to be shown if it is 'spammed'. | |
- | === Style 1 === | + | Image:Game-text-type6.jpg|'''Style 6''' |
- | + | </gallery> | |
- | [[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]] | + | |
- | + | ||
[[Category:Scripting Documentation]] | [[Category:Scripting Documentation]] |
Revision as of 16:31, 15 February 2015
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 (lower case L)~h~
Turn text color lighter (used too much will make your text white, doesn't work on black)
Special Text Letters
~u~
up arrow (gray)~d~
down arrow (gray)~<~
left arrow (gray)~>~
right arrow (gray)]
displays a * symbol (Only in text styles 3, 4 and 5)~k~
keyboard key mapping (e.g.~k~~VEHICLE_TURRETLEFT~
and~k~~PED_FIREWEAPON~
). Look here for a list of keys