surface.DrawText

From GMod Wiki

Jump to: navigation, search
Function
Syntax surface.DrawText( String text )
Where is this used?
Description:
Draws text at the current position, using the current font and color.
Returns: nil
Part of Library: surface
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Surface.DrawText]Surface.DrawText [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets the Text Color and Position, then draws "This is an Example" on the players screen.
Used onNewerClient.png
Code
surface.SetTextColor( 200, 200, 200, 255 )
surface.SetTextPos( 100, 200 ) 
surface.DrawText( "This is a text example" )
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox