Scrap Mechanic Wiki
Disambig.png This article is about the Survival developer mode. For developer functionality enabled by the -dev parameter, see Launch options.

Dev Mode is a cheat mode in Scrap Mechanic Survival Mode.


Dev Mode was created by the developers for testing purposes. It enables the use of Commands in Survival Mode.

Note that like any other Lua file modifications, enabling Dev Mode will make you unable to connect to other players (nor will other players be able to connect to you) unless they also have Dev Mode enabled.


It is strongly recommended that you create a backup of your world before loading it in Dev Mode. This is because once a world is loaded in Dev Mode, it can be disabled only via world file editing.

To enable Dev Mode, open Survival/Scripts/game/SurvivalGame.lua in a text editor. Insert the following line at the top of the file:

g_survivalDev = true

After saving the file, Dev Mode will be enabled for all Survival worlds loaded.

To enable Dev Mode for a specific world, do the following:

  • Edit the Lua file as described above
  • Open the game and load the world you wish to use Dev Mode in
  • Exit the game without loading any other Survival worlds
  • Revert the Lua file change

When you relaunch the game, Dev Mode will still be enabled for the world you previously loaded, and only that world.

Commands Only[]

Alternatively, you can enable Commands without truly enabling Dev Mode, thus avoiding its side effects. Creating a backup is still recommended, due to the nature of certain commands.

To enable commands, open Survival/Scripts/game/SurvivalGame.lua in a text editor and go to line 186 (inside the SurvivalGame.bindChatCommands function).

186     local addCheats = g_survivalDev

Change this to the following:

186     local addCheats = true

After saving the file, all players should have use of commands in all Survival worlds loaded.

To restrict commands to the host player only, go two lines down to line 188.

188     if addCheats then

Change this to the following:

188     if sm.isHost then

Note that all guest players must make the same exact Lua file changes as the host in order to be able to join the world.