• how to make a simple "draw.DrawText"
    5 replies, posted
hello everyone , do you know how to make a simple "draw.DrawText" , like a message on the screen :bravo2: /Gussan Aka Gustavgr Thx :)
If you just want a simple message to display in the center of the screen, then you should consider using [b][url=wiki.garrysmod.com/?title=Player.PrintMessage]Player.PrintMessage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b].
[QUOTE=NullPoint;19798836]If you just want a simple message to display in the center of the screen, then you should consider using [b][url=wiki.garrysmod.com/?title=Player.PrintMessage]Player.PrintMessage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b].[/QUOTE] but how do i move it?
If you don't want it in the center of the screen you would need to draw it manually in a HUDPaint hook. [editline]12:29PM[/editline] Just a little example: [lua]hook.Add("HUDPaint", "draw", function() draw.SimpleText("This is some text", "Default", 100, 100, Color(255, 0, 0), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER) end)[/lua]
[b][url=wiki.garrysmod.com/?title=Draw.SimpleText]Draw.SimpleText [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] [b][url=wiki.garrysmod.com/?title=Draw.Text]Draw.Text [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] [b][url=wiki.garrysmod.com/?title=Draw.TextShadow]Draw.TextShadow [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] [b][url=wiki.garrysmod.com/?title=Surface.DrawText]Surface.DrawText [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] Have fun :smile:
Sorry, you need to Log In to post a reply to this thread.