> For the complete documentation index, see [llms.txt](https://devix.gitbook.io/devix/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devix.gitbook.io/devix/devix-inventory/clothing-images.md).

# Clothing Images

Clothing item icons are loaded from **devix-inventory/html/clothe\_img/** (PNG). To generate them, use [fivem-greenscreener](https://github.com/Bentix-cs/fivem-greenscreener).

{% stepper %}
{% step %}

### Install

Clone the repo into your `resources` folder (not inside a subfolder like `[scripts]`). Dependencies: `screenshot-basic`, `yarn`. Ensure the resource in `server.cfg`.
{% endstep %}

{% step %}

### Capture

In-game, run **`/screenshot`** to capture all GTA clothing against a greenscreen. Wait for it to finish.
{% endstep %}

{% step %}

### Copy

Move the generated PNGs into **`devix-inventory/html/clothe_img/`**.
{% endstep %}
{% endstepper %}

**Naming:** Default slot icons use names like `clothe_hat.png`, `clothe_tshirt.png`, `clothe_pants.png`, etc. Per-item images use `info.img` + `.png` (e.g. `clothe_tshirt_5.png`). Rename greenscreener output to match.

**Note:** I recommend using images in the “.webp” format rather than the “.png” format to reduce file size

More options (e.g. `/customscreenshot`, camera): see [fivem-greenscreener README](https://github.com/Bentix-cs/fivem-greenscreener).


---

# 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://devix.gitbook.io/devix/devix-inventory/clothing-images.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.
