isConsoleActive | Multi Theft Auto: Wiki Skip to content

isConsoleActive

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

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.

Syntax

isConsoleActive ( )

Code Examples

client

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