> For the complete documentation index, see [llms.txt](https://wiki.redmodding.org/cyber-engine-tweaks/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.redmodding.org/cyber-engine-tweaks/console/console/how-do-i.md).

# Useful commands

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

## First Launch

After installing CET, you can open the console overlay with the [corresponding key](/cyber-engine-tweaks/console/usage.md#how-to-open-the-overlay).&#x20;

{% hint style="info" %}
If you have any problems getting to this stage, please check the [troubleshooting ](/cyber-engine-tweaks/getting-started/installing/troubleshooting.md)page.
{% endhint %}

{% hint style="danger" %}
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](#spreadsheets "mention").
{% endhint %}

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&#x20;

* [CET Console Commands for Patch 2.x](<https://1drv.ms/x/s!ArM35g0UkWjvjcVPT-fhFPPCZUfDLw?e=BOxScl >) (source: #cet-support on [redmodding Discord](https://discord.gg/redmodding))
* [CET Console Commands for Patch 1.x (Legacy)](https://docs.google.com/spreadsheets/d/1iuq4Srh_661PdY_17bnrU15UbtCLieO_0ZhQ0uqQ0_Y/edit#gid=0)

For the most common commands, see below.

If you want to find a specific item, look [here](https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/references-lists-and-overviews/equipment/spawn-codes-baseids-hashes) for how to find the hash code for the [command below](#give-myself-money-or-items).

## Items

Use Game.AddToInventory

```lua
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 
```

<details>

<summary>Frequently Required Items</summary>

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)
```

</details>

## Level

Use Game.SetLevel

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

## Attributes

Formerly Game.SetAttribute

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

## Perk and Skill Points

Formerly Game.GiveDevPoints

<pre class="language-lua"><code class="lang-lua"><strong>PlayerDevelopmentSystem.GetInstance(Game.GetPlayer()):GetDevelopmentData(Game.GetPlayer()):AddDevelopmentPoints(5, gamedataDevelopmentPointType.Attribute) -- Attribute (skill) points
</strong>PlayerDevelopmentSystem.GetInstance(Game.GetPlayer()):GetDevelopmentData(Game.GetPlayer()):AddDevelopmentPoints(3, gamedataDevelopmentPointType.Primary) -- Perk points
</code></pre>

## Vehicles

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

<https://nativedb.red4ext.com/c/3328983970199042>

## Teleportation

#### Get your coordinates

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

<pre><code><strong>print(Game.GetPlayer():GetWorldPosition())
</strong></code></pre>

#### 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](/cyber-engine-tweaks/teleportation-locations-deprecated.md). Replace **X**, **Y**, and **Z** with your coordinates. Coordinates can also be found in the `nodeData` of `.streamingsector` files.<br>

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

## Facts

{% hint style="danger" %}
At this time there is no way of triggering or "fixing" stuck quests with the console.
{% endhint %}

<details>

<summary>Spoilers!</summary>

## Secret Ending

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

## Skippy - Mode

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

## Skippy - Relationship

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

## Change where Jackie was sent to in the prologue?

```lua
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?

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

</details>

For a more cohesive list of quest facts, check the [yellow wiki](https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/files-and-what-they-do/file-formats/quests-.scene-files/quests-facts-and-files).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://wiki.redmodding.org/cyber-engine-tweaks/console/console/how-do-i.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
