SCode StudiosSCodeDocs
Tebex Store

Installation

Installation of Cherry Collection

Supported Core

  • QBCore

  • Qbox

  • ESX

Supported Inventories

  • ox_inventory

  • tgiann-inventory

  • qb-inventory

  • ESX default inventory

Requirements

  • oxmysql

  • A voice resource for calls: pma-voice, SaltyChat or mumble-voip

  • screencapture or screenshot-basic: for the camera without a Fivemanage token, live streams (Streamr) and video calls

  • Optional: ox_target or qb-target (to open a CherryBook that was put on a table)

  1. Drag and drop

    Put the vorty-cherry folder into your resources folder.

  2. Stop your old phone

    Stop your old phone script (qb-phone etc.): remove its ensure line or move it out of the resources folder. Two phones would fight over the /phone command. Scripts that send mail or notifications through qb-phone keep working.

  3. Start the resource
    Code
    ensure oxmysql
    ensure vorty-cherry

    The database tables are created on the first start (Config.AutoCreateTables = true). If your database user can't create tables, set it to false and import install.sql.

  4. Add the items

    install/items/ has a ready file for every inventory:

    Inventory

    File

    What to do

    ox_inventory

    ox_inventory.lua

    Paste the lines inside the table in ox_inventory/data/items.lua

    tgiann-inventory

    tgiann-inventory.json

    Add the entries to the records object in tgiann-inventory/data/items.json

    qb-inventory

    qb-inventory.lua

    Usually not needed: the items are added to QBCore automatically. Paste inside QBShared.Items only if your inventory asks for it

    ESX (default)

    esx.sql

    Run it once on your database

    For ox_inventory, the phone and tablet open through a client export:

    Lua
    ['cherry_phone'] = {
        label = 'CHERRY Phone', weight = 400, stack = false, close = true,
        client = { export = 'vorty-cherry.usePhone' },
    },
    ['cherry_tablet'] = {
        label = 'CHERRY Tablet', weight = 900, stack = false, close = true,
        client = { export = 'vorty-cherry.useTablet' },
    },

    On QBCore the old phone and tablet items keep working too.

  5. Copy the item pictures

    Copy the pictures from install/images/ to your inventory's image folder (ox_inventory/web/images, qb-inventory/html/images, tgiann-inventory's inventory_images/images ...). For ox_inventory you can also copy the cherry_phone_<colour>.png files, so every phone shows its own colour.

  6. config.lua

    Read the QUICK START box at the top of config.lua: language, keys, your Discord ID as CHERRY admin, bank and garage. Everything else works as it is. See Configuration.

  7. config_server.lua (recommended)

    Add a Fivemanage token for photos and videos, and a Discord webhook for the logs:

    1. Sign up on fivemanage.com (the free plan is enough to start).

    2. API Tokens → Create token, type Media, copy it.

    3. Paste it in ConfigServer.Fivemanage.token and restart the resource.

    With a token the phone takes photos and films videos itself and uploads them. Without one, photos still work and are stored on the server (see Config.Camera on the Configuration page).

  8. Check the setup

    Restart the server and read CHERRY setup check in the console. Every line with ✖ or ! tells you what to fix. /cherrycheck prints it again, /cherrylogtest sends a test line to Discord.

config_server.lua is loaded on the server only. Keys, tokens, webhooks and Wi-Fi passwords go there, never in config.lua: every player downloads config.lua.

config.lua, config_server.lua, locales/, bridge/, install.sql and install/items/ are open, so you can edit them.

Troubleshooting

Problem

Fix

"Item … not found" / the item does nothing

Your inventory doesn't know the item. Add it from install/items/ (tgiann-inventory only reads its own data/items.json), restart and check /cherrycheck.

The phone opens but stays empty, errors in the console

oxmysql must start before vorty-cherry. The setup check shows the database line.

No video

Add a Fivemanage token in config_server.lua.

Calls ring but nobody hears the other

No voice resource found. Use pma-voice, SaltyChat or mumble-voip (Config.Voice).

No Discord logs

Put a webhook in config_server.lua → Logs.webhook, then run /cherrylogtest. "HTTP 401 / 404" in the console means the webhook was deleted in Discord.

A CherryBook on a table can't be opened

Start ox_target or qb-target, or set Config.Laptop.placeable = false.

The key does nothing

Keys are FiveM key bindings. Config.Phone.key is only the default for new players. Players change it in Settings → Key Bindings → FiveM.

No item pictures

Copy install/images/ to your inventory's image folder.

Flecca shows the wrong balance

Set Config.Flecca.provider to your banking resource.

Last updated: December 6, 2026