> For the complete documentation index, see [llms.txt](https://cactus-code.gitbook.io/cactus-code-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cactus-code.gitbook.io/cactus-code-docs/documentation/scripts/cactus-poster-creator/posters-and-assets.md).

# Posters and assets

## Posters and assets

### Templates and TXD/TEX textures

| Family    | Value       | Purpose                                 |
| --------- | ----------- | --------------------------------------- |
| Standard  | `normal`    | Title, reward, identity, and body text. |
| Legendary | `legendary` | Portrait, title, and difficulty.        |

`nativeType` and `nativeDifficulty` accept values from `1` to `5`.

Not every FlowBlock uses every field. Some ignore the footer or place the portrait differently. Use the template lab to verify layouts live.

#### Rockstar catalog

```lua
Config.NativePosters.TextureCatalog.Numbered = {
    Enabled = true,
    From = 1,
    To = 40,
    Label = 'Classic portraits',
}
```

This generates `bounty_target_01` through `bounty_target_40`. City collections use `bounty_target_set_valentine_0` through `_3`.

#### Custom texture

1. Place `cactus_portraits_v2.ytd` in `stream/`.
2. Add the exact pair:

```lua
Config.NativePosters.TextureCatalog.Custom = {
    {
        Label = 'Cactus Portrait',
        Txd = 'cactus_portraits_v2',
        Tex = 'portrait_cactus',
    },
}
```

* TXD is the dictionary name. It is usually the filename without `.ytd`.
* TEX is the visible internal texture name in CodeX.
* Case and underscores must match exactly.

{% hint style="warning" %}
A `DLC_ITYP_REQUEST` declaration applies to `.ytyp` files, not `.ytd` files. It is not required for a portrait in `stream/`.
{% endhint %}

#### Preloading

```lua
Config.NativePosters.TextureStreaming = {
    StartupDelay = 1800,
    Timeout = 30000,
    RetryInterval = 500,
}
```

See `docs/TXD_FR.md` and `docs/TXD_EN.md` for the CodeX workflow.

### Template lab

```lua
Config.NativePosters.TemplateLab = {
    Enabled = true,
    Command = 'postergabarit',
    CloseCommand = 'postergabaritoff',
    DefaultFamily = 'normal',
    DefaultSlot = 1,
    DefaultType = 1,
    DefaultDifficulty = 1,
}
```

```
/postergabarit
/postergabarit cactus_portraits_v2 portrait_cactus
/postergabaritoff
```

The prop is local and temporary. It is not stored in MySQL. It is deleted when you close the lab.

### Inventory copies and RSG items

```lua
Config.PosterCopy = {
    Enabled = true,
    ItemName = 'cactus_wanted_poster',
    AutoRegisterRSGItem = true,
    Item = {
        label = 'Wanted notice copy',
        weight = 100,
        image = 'document_collector_map.png',
        description = 'A certified, read-only copy of a wanted notice.',
    },
}
```

The copy keeps the original ID, content, native rendering, copy date, and `placeable = false`.

| Item                   | Unique | Purpose                  |
| ---------------------- | :----: | ------------------------ |
| `white_paper`          |   No   | Opens the creator.       |
| `cactus_wanted_poster` |   Yes  | Read-only metadata copy. |

Complete definitions are in `RSG_ITEMS.lua`. Static registration in `rsg-core/shared/items.lua` remains recommended for production.

Expected inventory images:

```
white_paper.png
document_collector_map.png
```

### Commands

| Command                                      | Access              | Description                         |
| -------------------------------------------- | ------------------- | ----------------------------------- |
| `/postercreator`                             | Management          | Opens the live creator.             |
| `/postergabarit [txd] [tex]`                 | Local configuration | Opens the temporary lab.            |
| `/postergabaritoff`                          | Local configuration | Closes the lab.                     |
| `/postertxdtest [txd] [tex] [family] [type]` | Management          | Opens the creator with test values. |

`family` accepts `normal` or `legendary`. `type` accepts `1` through `5`.


---

# 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 current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cactus-code.gitbook.io/cactus-code-docs/documentation/scripts/cactus-poster-creator/posters-and-assets.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
