Scrap Mechanic Survival Console Commands for God Mode, Infinite Ammo & Health

Listed all the Scrap Mechanic Survival Console Commands.

Scrap Mechanic Survival has various console commands to unlock the God Mode, and get infinite ammo, and health in the game. Using the console commands & cheats makes the game easy to play & complete Scrap Mechanic Survival.

In this article, we’ll tell you all the active Scrap Mechanic Survival cheats and how to activate them. So, let’s dive in.

How to Redeem Cheat Codes?

  • To use the console commands right-click on Scrap Mechanic Survival in your Steam library.
  • After this go to Properties > LOCAL FILES > BROWSE LOCAL FILES > Survival > Scripts > game > SurvivalGame.lua
  • Now, open the final file with any editor.
  • Look for the line that reads ‘if g_survival then’ and replace it with ‘if true then’ and save the file.
  • Now, open your game and click on Enter to bring up command prompts.
  • Just enter the codes mentioned here and click on Enter.
  • This will activate the code.

How to enable Dev Mode in Scrap Mechanic Survival?

To enable Dev Mode, follow the below steps.

  • 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.

How to enable Console Commands in Scrap Mechanic Survival?

To enable commands, follow the below steps.

  • Open Survival/Scripts/game/SurvivalGame.lua in a text editor and go to line 186 (inside the SurvivalGame.bindChatCommands function).
    local addCheats = g_survivalDev
  • Change this to the following:
   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.

    if addCheats then
  • Change this to the following:
    if sm.isHost then

Scrap Mechanic Survival Console Commands

console commands cheat scrap mechanic survival.
Cheat CodesCheat Effect
/aggroallAll hostile units will be made aware of the player’s position
/ambushStarts a ‘random’ encounter
/ammoGive ammo (default 40)
/baguetteGive 1 revival baguette
/cameraSpawn a SplineCamera tool
/cleardebugClear debug draw objects
/clearpathnodesClear all path nodes in the overworld
/componentsGive components (default 10)
/dayDisable time progression and set time to daytime
/decryptUnrestrict interactions in all warehouses
/dieKill the player
/disableraidsDisable raids if true
/enablepathpotatoes“Creates path nodes at potato hits in overworld and links to the previous node
/encryptRestrict interactions in all warehouses
/exportExports blueprint $SURVIVAL_DATA/LocalBlueprints/.blueprint
/foodkitSpawn a food kit
/gatlingGive the potato Gatling gun
/glowsticksGive components (default 10)
/godMechanic characters will take no damage
/gotoTeleport to predefined position
/harvestableCreate a harvestable: ‘tree’, ‘stone
/importImports blueprint $SURVIVAL_DATA/LocalBlueprints/.blueprint
/keycardGive 1 keycard
/limitedUse the limited inventory
/mechanicstartkitSpawn a starter kit for starting at the mechanic station
/pipekitSpawn a pipe kit
/powercoreGive 1 power core
/printglobalsPrint all global lua variables
/raidStart a level raid at a player position at wave in hours.
/recreateRecreate world
/respawnRespawn at the last bed (or at the crash site)
/seedkitSpawn a seed kit
/setfoodSet player food value
/sethpSet player hp value
/setwaterSet player water value
/shotgunGive the fries shotgun
/spawnSpawn a unit: ‘woc’, ‘tapebot’, ‘totebot’, ‘haybot’
/spudgunGive the spudgun
/starterkitSpawn a starter kit
/stopraidCancel all incoming raids
/sunshakeGive 1 sunshake
/tumbleSet tumble state
/timeofdaySets the time of the day as a fraction (0.5=mid day)
/timeprogressEnables or disables time progress
/unlimitedUse the unlimited inventory

This is everything you need to know about the Scrap Mechanic Survival Console Commands.