# CET and Codeware

##

## Documentation

{% hint style="info" %}
This page is a stub. If you would like to expand it, please [sign up](<https://app.gitbook.com/invite/-MP5ijqI11FeeX7c8-N8/H70HZBOeUulIpkQnBLK7&#xA;>) and get cracking!!
{% endhint %}

You can find Codeware's existing documentation at the [wiki on psiberx's github](https://github.com/psiberx/cp2077-codeware/wiki)

## Known problems (and solutions)

### Accessing references

As of Mar 2024, you can't access rRef or raRef natively via CET:

```lua
-- this does not work
ComponentParser.GetMeshComponent(Game.GetPlayer(), 't0_000_pwa_fpp__torso')
```

This will most likely return `nil` or crash the game.&#x20;

Even if it does not, no reference is kept in memory: you're effectively working on a copy and there is currently no way to pass your changes back to the game.

Currently, the only way to access resources is via [Codeware](https://github.com/psiberx/cp2077-codeware/wiki#reading-resources), which will do its best to sync your changes with the actually-existing object.


---

# Agent Instructions: 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 current page URL with the `ask` query parameter:

```
GET https://wiki.redmodding.org/cyber-engine-tweaks/cet-and-codeware.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
