Garry's Mod Wiki

Garry's Mod Wiki

  boolean GM:StartChat( boolean isTeamChat )

Description

Runs when the user tries to open the chat box.

Returning true won't stop the chatbox from taking VGUI focus.

Issue Tracker: 855

Arguments

1 boolean isTeamChat
Whether the message was sent through team chat.

Returns

1 boolean
Return true to hide the default chat box.

Example

hook.Add( "StartChat", "HasStartedTyping", function( isTeamChat ) if ( isTeamChat ) then print( "Player started typing a message in teamchat." ) else print( "Player started typing a message." ) end end )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...