isChatBoxInputActive | Multi Theft Auto: Wiki Skip to content

isChatBoxInputActive

Client-side
Server-side
Shared

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.isChatBoxInputActive(...)
  • Variable: .chatBoxInputActive

Syntax

bool isChatBoxInputActive ( )

Returns

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

  • bool: result

Code Examples

client

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

addEventHandler('onClientRender', root, function()
if (isChatBoxInputActive()) then
dxDrawText('You\'re typing', 300, 300, 0, 0, 0xFFFFFFFF, 1, 'default-bold')
end
end)

See Also

GUI Functions