GM:StartChat

From Garry's Mod
Jump to: navigation, search
 GM:StartChat( )

Contents

Description

Runs when the user tries to open the chat box.

Arguments

boolean isTeamChat

True if team chat or, false otherwise.

Returns

boolean

Return true to hide the default chat box

Examples

Example

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


Personal tools
Navigation