ClearDebugBox: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Client function}}
{{Added feature/item|3.0159|1.5.9|1.5.8|20854|This function clears the debug box.}}
{{Added feature/item|1.5.9|1.5.8|20854|This function clears the debug box.}}


==Syntax==
==Syntax==
Line 12: Line 12:


==Example==
==Example==
<section name="Client" class="client" show="true">
This example clears the debug window when any new debug message is displayed:
This example clears the debug window when any new debug message is displayed:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
Line 17: Line 18:
     function ()
     function ()
         clearDebugBox ()
         clearDebugBox ()
    end
    end
)
)
</syntaxhighlight>
</syntaxhighlight>
</section>


==Requirements==
==Requirements==

Latest revision as of 09:35, 12 October 2021

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

Shared