Skip to content

Log

Writes a line to the server log, prefixed [lua].

Every argument is converted with tostring and joined with spaces, like print - and print is this function in a game mode. The line lands in the server’s log (the console and the log file), never in a player’s chat.

Log(...)
Parameter Type
... any the values to write

nothing

Log("spawned", GetPlayerName(pid), "at", x, y, z)

SendClientMessage · the Server and timers group of the index