REDengine 4 Lua Scripting

Cyberpunk 2077 (Patch 2.x & Phantom Liberty) Console Commands: Lua Syntax & Save Safety

Here is the fact most scraped cheat sites leave out: pressing tilde (~) in an unmodified retail copy of Cyberpunk 2077 does nothing because CD Projekt Red stripped the debug console UI before launch. Running single-player commands requires a Lua scripting bridge and strict REDengine 4 TweakDB syntax.

Tested build / patch
Patch 2.12 / 2.2 + Phantom Liberty
Platforms verified
PC Only (Steam, GOG Galaxy, Epic)
Trophy / achievement flag
100% Safe — Steam & GOG Achievements Continue Firing
Save-file safety
Avoid Quest-Fact Edits; Item & Eurodollar Calls Are Safe

Why Pressing ~ Does Nothing in Vanilla Cyberpunk 2077

Unlike The Witcher 3—where adding DBGConsoleOn=true to general.ini activates a compiled native console—CD Projekt Red removed the interactive command-line parser from retail REDengine 4 executables. Passing -debug in Steam Launch Options does not restore it.

To execute official internal TweakDB engine functions in single-player PC builds, the community standard is the open-source Cyber Engine Tweaks (CET) ASI plugin (placed inside bin\x64\plugins\), which binds an in-game Lua scripting terminal to your chosen hotkey on first launch and passes commands directly to Cyberpunk’s internal Game.* scripting API.

REDENGINE 4 LUA TWEAKDB CALL ANATOMY (STRICT CASE & DOUBLE QUOTES) Game.AddToInventory( Global Lua Engine Namespace "Items.Preset_Katana_Saburo" Quoted TweakDB Record String , 1) Integer Count Patch 2.0+ Overhaul Note: Old 1.6 Armor Mod & Crafting Spec IDs were retired when Cyberware 2.0 launched!
Figure 1: Every Cyberpunk 2077 console line is an executable Lua expression—missing parentheses or quotes throws a Lua syntax error.

Verified Patch 2.x Eurodollar, Perk, Relic & Attribute Commands

Filter Cyberpunk 2.x Commands:
Exact Lua Console Expression In-Game Result (Patch 2.x) Patch 2.0+ Overhaul Notes
Game.AddToInventory("Items.money", 100000) Adds 100,000 Eurodollars (Eddies) Cleanest way to fund Ripperdoc Tier 5 Cyberware upgrades
Game.AddToInventory("Items.LegendaryMaterial1", 250) Adds 250 Tier 5 Upgrade Components Used to upgrade Iconic weapons from Tier 5 to 5+ and 5++
Game.GiveDevPoints("Attribute", 5) Adds 5 unspent Attribute Points Warning: Attributes still cap at 20 per tree in Patch 2.x
Game.GiveDevPoints("Primary", 10) Adds 10 Perk Points Refundable anytime inside the Patch 2.0 Perk Tree UI
Game.GiveDevPoints("Espionage", 3) Adds 3 Phantom Liberty Relic Points Requires Phantom Liberty expansion installed and Dogtown intro started
Game.AddToInventory("Items.CWCapacityPermaReward_Legendary", 1) Consumes a legendary Cyberware Capacity Shard Safer than editing raw stat pools directly; avoid exceeding ~450 capacity or the Ripperdoc UI bar overflows visually
Game.AddToInventory("Items.Preset_Katana_Saburo", 1) Spawns Satori Iconic Katana (Konpeki Plaza roof missable) Pairs with Nehan throwing knife (Items.Preset_Tanto_Saburo) for Hemorrhage bleed
Game.AddToInventory("Items.Preset_Silverhand_3516", 1) Spawns Johnny’s Malorian Arms 3516 Pistol Scales to V’s current player tier on pickup in Patch 2.x
Game.AddToInventory("Items.Preset_Borg4a_HauntedGun", 1) Spawns Erebus Blackwall SMG (Phantom Liberty) Normally locked behind the Cynosure bunker story branch
Game.GetVehicleSystem():EnableAllPlayerVehicles() Unlocks every purchasable & quest vehicle in Call Vehicle menu Permanent on that save once saved—clone your save first!
Do Not Force SetDebugFact for Secret Ending ("Don't Fear the Reaper") Without Backup Running Game.GetQuestsSystem():SetFactStr("sq032_johnny_friend", 1) works to unlock the oil-field secret ending timer on Misty’s rooftop, provided you execute it before riding the elevator up to Embers! Editing quest facts mid-conversation on the rooftop can deadlock Johnny’s 5-minute silence trigger.

Always copy your %USERPROFILE%\Saved Games\CD Projekt Red\Cyberpunk 2077 folder before running vehicle-all or quest-fact scripts; see our PC Save Backup Guide and PC Console Commands Hub.

Frequently Asked Questions

Why did old Cyberpunk 1.6 Clothing Mod and Crafting Spec commands stop working?

Patch 2.0 completely redesigned armor and weapons: clothing items became cosmetic (aside from select ballistic vests/helmets) and armor rating moved into Cyberware, retiring hundreds of legacy 1.6 clothing mod TweakDB records.

Does using Cyber Engine Tweaks disable Steam or GOG achievements?

No. Unlike Bethesda’s Creation Engine 2, Cyberpunk 2077 does not inspect ASI plugins or Lua calls when firing Steamworks or GOG Galaxy achievement triggers.

Why did my CET console stop opening right after a minor Steam patch?

Because CET hooks compiled memory addresses inside Cyberpunk2077.exe, every executable patch requires updating the single CET folder to the matching build release.