Skip to content
/SLASHPLAY

How to run a Lua command silently in Factorio

Type /silent-command <lua> (or /sc) in the Console tab of your SLASHPLAY server or in game chat as an admin. Players don't see the command in chat.

silent-command

Runs a line of Lua like /c, without printing the command to every player's chat.

/silent-command <lua>

Examples

/silent-command rcon.print(#game.players)

From the Console tab: the number of players on the map.

/sc game.print("Saving soon")

Short form.

Arguments

luaRequired
One line of Lua. From the Console tab, rcon.print() sends output back.

What it does

For admin fixes and scripts players shouldn't see in chat.

Good to know

  • Like /c, the first Lua command on a map only warns that it disables achievements; send it again to run it.
  • On SLASHPLAY, type it in the Console tab of the server page, with the leading slash. The Console runs it as the server, so it needs no admin rights.

Run it on your server

Type commands with the leading slash in the Console tab, which runs them as the server; in game, admins type them in chat. Settings go in config/server-settings.json in the Files tab and apply at the next restart. New to this? Start a Factorio server first.

Your own
Factorio server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.