# 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) 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.
