Garry's Mod Wiki

debugoverlay.ScreenText

  debugoverlay.ScreenText( number x, number y, string text, number lifetime = 1, table color = Color( 255, 255, 255 ) )

Description

Displays text triangle at the specified coordinates.

This function will silently fail if the developer ConVar is set to 0. It is not networked to clients, except for the listen server host.

Arguments

1 number x
The position of the text, from 0 ( left ) to 1 ( right ).
2 number y
The position of the text, from 0 ( top ) to 1 ( bottom ).
3 string text
The text to display
4 number lifetime = 1
Number of seconds to appear
5 table color = Color( 255, 255, 255 )
The color of the box. Uses the Color