â„šī¸
Cyber Engine Tweaks
DiscordEdit
  • 🏠Welcome
  • Getting Started
    • đŸ’ŋInstallation
      • 🚨Troubleshooting
      • 🐧Linux (Proton)
      • đŸ—‘ī¸Uninstall
    • ❔How do I _____?
  • Overlay
    • đŸ–Ĩī¸Usage
      • FAQ
    • 🎹Console
      • Useful commands
    • đŸ–ąī¸Bindings
    • đŸ› ī¸Settings
      • Config file
        • Change font & language setting
    • đŸ—„ī¸TweakDB Editor
    • ⌛Game Log
  • Modding
  • 📖Introduction
  • đŸŽ¯First Steps
    • Mod Structure
    • Logs & Debug
    • Good Practices
  • 💎Resources
    • VS Code
    • Class Dumps
    • NativeDB
    • Enum Dump
  • 📗Scripting API
  • 📘CET Functions
    • Events
      • onInit
      • onUpdate
      • onDraw
      • onOverlayOpen
      • onOverlayClose
      • onShutdown
      • onTweak
    • Hotkeys
      • RegisterHotkey
      • RegisterInput
    • Miscellaneous
      • Debug functions
      • Getters functions
    • Observe, Override, NewProxy
      • Observe
      • Override
      • NewProxy
    • Movement / Camera
      • AdjustTransformWithDurations
    • Special Types
    • TweakDB
  • 📒Game Functions
  • 🎲CET and Codeware
  • âœī¸Snippets & Examples
    • UI Examples
      • Helpful GUI Mods
    • Utilities
      • Debug
      • Files
      • Hooks
      • Tables
      • Async / waiting
  • Dictionary
  • Base Status Effects
  • stringType
  • Clothing Recipes
  • How To Teleport
  • Other
  • Patch notes
  • Upgrade Guide
  • CET Releases
  • External docs
    • NativeDB
    • Console Commands
  • Other Wikis
  • Red Modding
  • CyberCAT
  • WolvenKit
  • CP77 Tools
Powered by GitBook
On this page
Export as PDF
  1. Overlay
  2. 🎹Console

Useful commands

A collection of commonly requested commands. How do I...

PreviousConsoleNextBindings

Last updated 3 months ago

CtrlK
  • First Launch
  • Spreadsheets
  • Items
  • Level
  • Attributes
  • Perk and Skill Points
  • Vehicles
  • Teleportation
  • Facts

First Launch

After installing CET, you can open the console overlay with the corresponding key.

If you have any problems getting to this stage, please check the troubleshooting page.

The commands are case-sensitive!

Many console commands have changed with 2.0. If something you try doesn't work, check the most up-to-date list under Spreadsheets.

Open the Console tab to run Lua scripts or engine functions. To find out what you can do here, keep reading.

Spreadsheets

To find all the codes you can enter, check

  • CET Console Commands for Patch 2.x (source: #cet-support on redmodding Discord)

  • CET Console Commands for Patch 1.x (Legacy)

For the most common commands, see below.

If you want to find a specific item, look here for how to find the hash code for the command below.

Items

Use Game.AddToInventory

Game.AddToInventory("Items.money", 10000) -- Gives 10,000 eurodollars
Game.AddToInventory("Items.SQ031_Samurai_Jacket", 1) -- Gives you the Replica of Johnny's Samurai Jacket 
Frequently Required Items

Ammunition

Game.AddToInventory("Ammo.HandgunAmmo", 500)
Game.AddToInventory("Ammo.RifleAmmo", 700)
Game.AddToInventory("Ammo.ShotgunAmmo", 100)
Game.AddToInventory("Ammo.SniperRifleAmmo", 100)

Crafting Components

Game.AddToInventory("Items.CommonMaterial1", 1000)
Game.AddToInventory("Items.UncommonMaterial1", 1000)
Game.AddToInventory("Items.RareMaterial1", 1000)
Game.AddToInventory("Items.EpicMaterial1", 1000)
Game.AddToInventory("Items.LegendaryMaterial1", 1000)

Quickhacks

Game.AddToInventory("Items.QuickHackUncommonMaterial1", 1000)
Game.AddToInventory("Items.QuickHackRareMaterial1", 1000)
Game.AddToInventory("Items.QuickHackEpicMaterial1", 1000)
Game.AddToInventory("Items.QuickHackLegendaryMaterial1", 1000)

Level

Use Game.SetLevel

Game.SetLevel("Level", 60, 1) -- Sets character level to 60

Attributes

Formerly Game.SetAttribute

PlayerDevelopmentSystem.GetInstance(Game.GetPlayer()):GetDevelopmentData(Game.GetPlayer()):SetAttribute("Strength", 15) -- Sets Body to 15

Perk and Skill Points

Formerly Game.GiveDevPoints

PlayerDevelopmentSystem.GetInstance(Game.GetPlayer()):GetDevelopmentData(Game.GetPlayer()):AddDevelopmentPoints(5, gamedataDevelopmentPointType.Attribute) -- Attribute (skill) points
PlayerDevelopmentSystem.GetInstance(Game.GetPlayer()):GetDevelopmentData(Game.GetPlayer()):AddDevelopmentPoints(3, gamedataDevelopmentPointType.Primary) -- Perk points

Vehicles

All vehicle commands are documented on the VehicleSystem page linked below.

Teleportation

Get your coordinates

You can print V's current coordinates to the CET console with the following command:

print(Game.GetPlayer():GetWorldPosition())

Go somewhere else

You will need to know the coordinates of where you want to go in the game world, some popular coordinates are available here. Replace X, Y, and Z with your coordinates. Coordinates can also be found in the nodeData of .streamingsector files.

Game.GetTeleportationFacility():Teleport(GetPlayer(), ToVector4{x=X, y=Y, z=Z, w=1}, ToEulerAngles{roll=0, pitch=0, yaw=0})

Facts

At this time there is no way of triggering or "fixing" stuck quests with the console.

Spoilers!

Secret Ending

Game.GetQuestsSystem():SetFactStr("sq032_johnny_friend", 1)

Skippy - Mode

Game.GetQuestsSystem():SetFactStr("mq007_skippy_aim_at_head", 1)

Skippy - Relationship

Game.GetQuestsSystem():SetFactStr("mq007_skippy_goes_emo", 0)

Change where Jackie was sent to in the prologue?

Game.GetQuestsSystem():SetFactStr("q005_jackie_to_hospital", 0)
Game.GetQuestsSystem():SetFactStr("q005_jackie_to_mama", 0)
Game.GetQuestsSystem():SetFactStr("q005_jackie_stay_notell", 1)

Set Takemura's condition after the parade?

Game.GetQuestsSystem():SetFactStr("q112_takemura_dead", 1)

For a more cohesive list of quest facts, check the yellow wiki.