OutputDebugString: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search
Automatyczna aktualizacja dokumentacji funkcji
 
Complete Lua function catalog
 
Line 29: Line 29:
* Available in both client-side and server-side resource scripts.
* Available in both client-side and server-side resource scripts.


[[Category:Lua Functions]]
[[Category:Shared Functions]]
[[Category:Shared Functions]]
[[Category:Debug Functions]]
[[Category:Debug Functions]]
[[Category:Utility Functions]]
[[Category:Utility Functions]]

Latest revision as of 09:54, 15 August 2026

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.