ClearDebugBox: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
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 20: Line 21:
)
)
</syntaxhighlight>
</syntaxhighlight>
</section>


==Requirements==
==Requirements==

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

This template will be deleted.

See Also