outputServerLog
Shared
Writes a message to this side's log, with the resource's name in front.
bool outputServerLog(string text)
Parameters
| Name | Type | Description |
|---|---|---|
| text | string | The 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)