isConsoleActive | Multi Theft Auto: Wiki Skip to content

isConsoleActive

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 console window is visible or not.

OOP Syntax Help! I don't understand this!

  • Method: guielement:isConsoleActive(...)
  • Variable: .consoleActive

Syntax

bool isConsoleActive ( )

Returns

  • bool: value

Returns true if the console is visible, false if not.

Code Examples

shared

This example does...

function consoleactiveCommand(arg)
local active = (isConsoleActive() and "active.") or "not active."
outputChatBox("Your console is " .. active)
end
addCommandHandler("consoleactive", consoleactiveCommand)

See Also

GUI Functions