IsConsoleActive: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Client function}} This function returns whether the ingame console window is visible or not. ==Syntax== <syntaxhighlight lang="lua"> bool isConsoleActive () </syntaxhighlight> ===Returns=== Returns...)
 
No edit summary
Line 14: Line 14:
This example does...
This example does...
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
--This line does...
function consoleactiveCommand(arg)
blabhalbalhb --abababa
    local active = "not active."
--This line does this...
    if (isConsoleActive()) then active = "active.")
mooo
    outputChatBox("Your console is " .. active)
end
addCommandHandler("consoleactive", consoleactiveCommand)
</syntaxhighlight>
</syntaxhighlight>



Revision as of 09:24, 28 March 2009

This function returns whether the ingame console window is visible or not.

Syntax

bool isConsoleActive ()

Returns

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

Example

This example does...

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

See Also

General functions

Browsers

Buttons

Checkboxes

Comboboxes

Edit Boxes

Gridlists

Memos

Progressbars

Radio Buttons

Scrollbars

Scrollpanes

Static Images

Tab Panels

Tabs

Text Labels

Windows