Returns the numeric index corresponding to a chat message type. These indices are used in the default UI to identify lines printed in a chat window, allowing (for example) their color to be changed to match changes in the player's color preferences.


See also Chat functions.

Signature:

index = GetChatTypeIndex("messageGroup")

Arguments:

  • messageGroup - Token identifying a message type (string, chatMsgType)

Returns:

  • index - Numeric index of the chat type (number)