Garry's Mod Wiki

Revision Difference

gui.AddCaption#551668

<function name="AddCaption" parent="gui" type="libraryfunc">⤶ <description>Pushes text to the closed caption box.</description>⤶ <realm>Client</realm>⤶ <added>2023.09.06</added>⤶ <args>⤶ <arg name="text" type="string">The caption to emit. See [Closed Captions](https://developer.valvesoftware.com/wiki/Closed_Captions) for more info</arg>⤶ <arg name="duration" type="number">How long the caption should stay for</arg>⤶ <arg name="fromPlayer" type="boolean"></arg>⤶ </args>⤶ </function>⤶