> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_police/configs/camera-item.md).

# Camera Item

The Camera Item lets players take and save in-game screenshots.

{% stepper %}
{% step %}

### Install Requirements

Before enabling the Camera Item, make sure your server has:

* [screencapture](https://github.com/itschip/screencapture/releases/download/v0.9.2/screencapture.zip)
* A supported inventory system with **metadata** support (e.g. `ox_inventory`, `qb-inventory`, `tgiann-inventory`)
* An **API Key** from one of these services:
  * [FiveManage](https://app.fivemanage.com/dashboard/) - API Tokens
  * [FiveMerr](https://fivemerr.com/dash/) - API Tokens
    {% endstep %}

{% step %}

### Configure Your API Key

Open your `sconfig.lua` and edit the **Image section**:

```lua
ServerConfig = {
    Image = {
        Service = Images.FIVEMANAGE, -- Or Images.FIVEMERR depending on your provider
        ApiKey = "YOUR_API_KEY_HERE", -- Replace with your real API key
        Settings = {
            encoding = "webp",
            maxWidth = 1920,
            maxHeight = 1080,
            quality = 0.6
        },
        CustomConfig = {
            url = "",
            authType = "header"
        }
    }
}
```

{% endstep %}

{% step %}

### Enable the Camera Item

Open your `config.lua` and change the configuration like below.

```lua
Image = {
    AllowCameraItem = true,
}
```

By default, this is set to `false`.
{% endstep %}

{% step %}

### Define Inventory Items

Open **`rcore_police/inventory_items`** and add definitions for the **camera** and **photo** items in your inventory system.

📂 Item images are located here: **`rcore_police/assets/InventoryImages`**
{% endstep %}
{% endstepper %}

{% hint style="info" %}
Make sure the `screencapture` resource is installed and running on your server - otherwise the camera function will be automatically disabled.
{% endhint %}
