SetDebugViewActive

From Multi Theft Auto: Wiki
Revision as of 13:34, 22 April 2017 by Lars (talk | contribs) (Created page with "{{Client function}} __NOTOC__ This function enables or disables the debug window. ==Syntax== <syntaxhighlight lang="lua"> bool setDebugViewActive ( bool enabled ) </syntaxhi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function enables or disables the debug window.

Syntax

bool setDebugViewActive ( bool enabled )

Required Arguments

  • enabled: true if debug window should be visible, false otherwise.

Returns

Returns true, false if invalid parameters are passed.

Example

This example enables or disables the debug window.

function enableDebug()
	local state = not isDebugViewEnabled()
	setDebugViewActive(state)
end
addCommandHandler("debug", enableDebug)

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