ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. outputServerLog

Function

outputServerLog

ServerChat and consoleIdentical to MTA:SA

Writes a line to the server log (console and file) without sending it to players.

Syntax

bool outputServerLog(string message)

Arguments

messagestring
The text.

Returns

true on success.

Example

addEventHandler("onPlayerJoin", root, function()
    outputServerLog("[wejście] " .. getPlayerName(source) .. " " .. getPlayerIP(source))
end)

See also