[.Net][C#]Possible text displaying functions?
Posted 31 December 2012 - 11:02 PM Edited by Tsproggy, 01 January 2013 - 03:07 AM.
Are there some functions I'm missing that maybe you guys could direct me to so that I can display some quick text to my player without having to look at my console screen? I wouldn't mind it so much if it didn't do things like stop my car completely just to look etc.
Nevermind, I thought the Game.DisplayText("Text") function didn't work but turns out it does just fine.
Posted 01 January 2013 - 05:27 AM
private void msg(string message, Int32 time)
GTA.Native.Function.Call("PRINT_STRING_WITH_LITERAL_STRING_NOW", "STRING", message, time, 1);
private void BasicKeyExample_KeyDown(object sender, GTA.KeyEventArgs e)
if (e.Key == Keys.D1)
msg("Happy New Years", 2000);
Posted 07 January 2013 - 04:56 PM
|QUOTE (perkins @ Tuesday, Jan 1 2013, 05:27)|
| When '1' is pressed, displays "Happy New Years" for 2 seconds on bottom center of screen.|
msg("~y Happy New Years", 2000); - shows tet in yellow
msg("~r Happy New Years", 2000); - shows text in red
and so on... ~[first letter of color name]
Posted 17 January 2013 - 06:08 PM
|msg("~r Happy New Years", 2000); - shows text in red|
nice, this one its new for me, thx
Posted 18 January 2013 - 05:18 PM Edited by hardsty1e, 18 January 2013 - 05:34 PM.
msg("~r~Press or [F] for Flares~w~", 2000);
~INPUT_F~ - [F] cant find image but shows a boxed F
~INPUT_MELEE_KICK~ - [Q] no image
more at "https://sites.google...my/x-gxt-editor"
Posted 05 May 2013 - 06:06 PM
I am assuming all ~INPUT_FRONTEND... will do the same for the correspondent keys, but I haven't tested.
In case someone finds it useful.
Posted 14 July 2013 - 06:47 AM Edited by pedro2555, 14 July 2013 - 07:51 AM.
No native way to do it, nor even with DoNetScripthook only. It's a function available with AdvancedHook.dll.
A rude C# script :
public class TestScript : Script
AGame.PrintText("The quick brown fox jumps over the lazy dog.");
// or AGame.PrintTextForever("The quick brown fox jumps over the lazy dog.");
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users