ClearDebugBox

From Multi Theft Auto: Wiki
Revision as of 09:35, 12 October 2021 by Danzy (talk | contribs) (→‎Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function clears the debug box.

Syntax

bool clearDebugBox ( )

Returns

Always returns true.

Example

Click to collapse [-]
Client

This example clears the debug window when any new debug message is displayed:

addEventHandler ("onClientDebugMessage", root,
    function ()
         clearDebugBox ()
    end
)

Requirements

Minimum server version n/a
Minimum client version 1.5.8-9.20854

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.5.8-9.20854" />

See Also