M MY Multiplayer: Wiki
Side
Kind

outputServerLog

Shared

Writes a message to this side's log, with the resource's name in front.

bool outputServerLog(string text)

Parameters

NameTypeDescription
textstringThe text.

Returns

true once the line is written.

On a client, the line goes to the client's own log, not the server's.

Example

addEventHandler("onPlayerJoin", root, function()
    outputServerLog(getPlayerName(source) .. " joined")
end)

See also