OutputDebugString

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 12:45, 4 August 2026 by QCherry (talk | contribs) (Automatyczna aktualizacja dokumentacji funkcji)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

outputDebugString

Writes a message to the resource log at the requested severity level.

Syntax

bool outputDebugString(string message [, int level = 3])

Parameters

Name Type Required Description
message string yes The text to write to the resource log.
level int no The severity: 1 for error, 2 for warning, or 3 for information.

Returns

Returns true after the message has been accepted.

Examples

Write an informational message to the log:

outputDebugString("The resource has started", 3)

Notes

  • Available in both client-side and server-side resource scripts.