Garry's Mod Wiki

Revision Difference

debugoverlay.ScreenText#513155

<function name="ScreenText" parent="debugoverlay" type="libraryfunc">⤶ <description>⤶ Displays text triangle at the specified coordinates.⤶ ⤶ <note>This function will silently fail if the **developer** <page>ConVar</page> is set to 0.</note>⤶ </description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="x" type="number">The position of the text, from 0 ( left ) to 1 ( right ).</arg>⤶ <arg name="y" type="number">The position of the text, from 0 ( top ) to 1 ( bottom ).</arg>⤶ <arg name="text" type="string">The text to display</arg>⤶ <arg name="lifetime" type="number" default="1">Number of seconds to appear</arg>⤶ <arg name="color" type="table" default="Color( 255, 255, 255 )">The color of the box. Uses the &lt;page&gt;Color&lt;/page&gt;</arg>⤶ </args>⤶ </function>⤶ ⤶