• Display text in a screen
    4 replies, posted
Hello everybody! Prompt how to display an text in a screen corner Help plz =) Sorry for my english
[QUOTE=Shenesis;50293710][img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/draw/SimpleText]draw.SimpleText[/url] in a [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/HUDPaint]GM:HUDPaint[/url] hook (which can be added using [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/hook/Add]hook.Add[/url])[/QUOTE] Plz, Can you write a example?
[CODE] hook.Add( 'HUDPaint', 'drawtextstuff', function() draw.SimpleText( 'sample text', 'Trebuchet24', 0, 0, Color( 255, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) end ) [/CODE] That'd draw some white text (saying 'sample text') in the top-left corner.
Thx everybody!
Sorry, you need to Log In to post a reply to this thread.