isChatBoxInputActive | Multi Theft Auto: Wiki Skip to content

isChatBoxInputActive

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function returns whether the ingame chatbox is being used (accepting chatbox input) or not.

OOP Syntax Help! I don't understand this!

  • Method: GuiElement.)(...)
  • Variable: .chatBoxInputActive

Syntax

bool isChatBoxInputActive ( )

Returns

  • bool: value

Returns true if the chatbox is receiving input, false if not active.

Code Examples

shared

This example shows how you can check if a user has the chat box active (and presumably typing a message).

if isChatBoxInputActive() then
outputChatBox("You're typing")
end

See Also

GUI Functions