OnClientDebugMessage

From Multi Theft Auto: Wiki
Revision as of 14:03, 27 November 2010 by Snert (talk | contribs) (Created page with "__NOTOC__ {{Server event}} This event is triggered when client-side debug messages (for instance errors or warnings) would appear in the debug window. This event doesn't require...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is triggered when client-side debug messages (for instance errors or warnings) would appear in the debug window. This event doesn't require the debug window to be enabled to trigger, however.

Parameters

string message, int level, string file, int line
  • message: The message which was outputted in the server console, without details like file, line etc
  • level: The type of debug message which was outputted
    • 0: "Custom" message
    • 1: Error message
    • 2: Warning message
    • 3: Information message
  • file: The file from which the debug message was outputted
    • Note: May return nil when the source could not be found
  • line: The line in file file where the debug message was outputted
    • Note: May return nil when the source could not be found

Source

The source of this event is the root element.

Example

-- TODO

See Also

Other client events


Client event functions