For the complete documentation index, see llms.txt. This page is also available as Markdown.

Camera Item

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

1

Install Requirements

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

  • A supported inventory system with metadata support (e.g. ox_inventory, qb-inventory, tgiann-inventory)

  • An API Key from one of these services:

2

Configure Your API Key

Open your sconfig.lua and edit the Image section:

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"
        }
    }
}
3

Enable the Camera Item

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

Image = {
    AllowCameraItem = true,
}

By default, this is set to false.

4

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

Make sure the screencapture resource is installed and running on your server - otherwise the camera function will be automatically disabled.

Last updated