Console::clear

From RAGE Multiplayer Wiki
Revision as of 17:20, 10 June 2024 by Shr0x (talk | contribs) (Created page with " {{ClientsideJsFunction}} {{JSContainer| Clears out console ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.console.clear() </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.events.add("consoleCommand", (command) => { if (command === "clear") mp.console.clear(); }); </syntaxhighlight> }} ==See also== {{Console_definition_c}} Category:Clientside API")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax


Clears out console

Return value

  • void

Syntax

mp.console.clear()

Example

mp.events.add("consoleCommand", (command) => {
	if (command === "clear") mp.console.clear();
});


See also