superdudes
Members
-
Joined
-
Last visited
Reputation Activity
-
superdudes reacted to LtFlash in Coding - In Game Messageshttp://hazardx.com/files/gta4_net_scripthook_docs-89
this will help you I guess.
To print a text you can use:
1) GTA.Game.DisplayText(text)/GTA.Game.DisplayText(text, time)
2) GTA.Graphics.DrawText()
The welcome message of LCPD:FR uses a function LCPD_First_Response.LCPDFR.API.Functions.PrintHelp(text).
To customize your in-game texts you can use gxt tags:
http://gtag.gtagaming.com/forums/index.php?showtopic=1450
...and search "Coloring Your Text" section.
Good luck!
-
superdudes reacted to hardsty1e in Coding - In Game MessagesNative.Function.Call("DRAW_CURVED_WINDOW", 0.1, 0.11, 0.2, 0.25, 200) (can't change window color only its size and offsets use "DRAW_RECT" instead)
Native.Function.Call("DRAW_RECT", 0.5000, 0.5000, 1.0000, 1.0000, 0, 0, 0, 167)
Native.Function.Call("PRINT_STRING_WITH_LITERAL_STRING_NOW, "string", text, 5000, true)
void Text() { Function.Call("SET_TEXT_FONT", 1); Function.Call("SET_TEXT_BACKGROUND", 0); Function.Call("SET_TEXT_SCALE", 0.35, 0.65); Function.Call("SET_TEXT_COLOUR", 255, 0, 0, 255); Function.Call("SET_TEXT_EDGE", 1, 0, 0, 0, 0); Function.Call("SET_TEXT_RIGHT_JUSTIFY", 0); Function.Call("SET_TEXT_DROPSHADOW", 0, 255, 255, 255, 255); } no need for lcpdfr advanced api
http://gtaxscripting.blogspot.com/2013/07/tut-drawing-shapes-and-text-on-screen.html