SCode StudiosSCodeDocs
Tebex Store

Configuration

Configuration of Cherry Collection

There are two config files:

  • config.lua: every setting of the devices and apps. Every player downloads this file.

  • config_server.lua: keys, tokens, webhooks and Wi-Fi passwords. Loaded on the server only.

Texts in config.lua can be one string ('Police') or one per language ({ en = 'Police', tr = 'Polis' }). The one for Config.Locale is used.

Quick start

Most servers only change these. Everything else works as it is.

#

Setting

What it is

1

Config.Locale

Language: 'en' or 'tr'

2

Config.Framework, Config.Inventory

'auto' finds QBCore, Qbox, ESX and ox / tgiann / qb inventory

3

Config.Phone.key, Config.Tablet.key

Default keys (players can change them in their FiveM settings)

4

Config.Phone.items ...

Item names. The ready item lists for your inventory are in install/items/

5

Config.Admins

Your Discord ID: CHERRY admin (blue checks, campaigns, log test)

6

Config.Flecca.provider, Config.Flecca.admins

Your banking resource and who runs Flecca campaigns

7

Config.Garage

The garage script for the Garage app and the valet

8

config_server.lua

Fivemanage (photos and video), Discord logs, YouTube key

After a restart, the server console shows CHERRY setup check: what was found and what is still missing.

Language, framework and voice

Lua
Config.Locale = 'en'            -- 'en' | 'tr'. Add your own in locales/

Config.Framework = 'auto'       -- 'auto' → qbx_core → qb-core → es_extended | 'qbcore' | 'qbox' | 'esx' | 'custom'
Config.Inventory = 'auto'       -- 'auto' → ox_inventory → tgiann-inventory → qb-inventory → framework | 'ox' | 'tgiann' | 'qb' | 'framework'

Config.Notify = 'auto'          -- 'auto' | 'qb' | 'esx' | 'ox' (ox_lib) | 'native'
Config.Voice = 'auto'           -- 'auto' → pma-voice → saltychat → mumble-voip | 'pma-voice' | 'saltychat' | 'mumble-voip' | 'custom'

Config.AutoCreateTables = true  -- false → import install.sql yourself

Devices

Lua
Config.Phone = {
    enabled = true,             -- false = no CHERRY phone (you run another phone): tablet, CherryBook, Watch and Pods still work
    command = 'phone',          -- /phone
    key = 'F1',
    items = { 'cherry_phone', 'phone' },  -- the first one is the item the store sells
    requireItem = true,         -- false → everyone can open the phone without an item
    walkWhileOpen = true,
    lockScreen = true,
    useFrameworkNumber = true,  -- QBCore / Qbox: charinfo.phone. ESX: Config.ESX.phoneColumn
    numberFormat = '555#######',-- generated numbers (# = random digit) when the framework has none
    time = 'real',              -- 'real' (player's PC time) | 'game' (in-game time)
    position = 'right',         -- 'right' | 'center'
    -- ...
}

Config.Tablet = {
    command = 'tablet',         -- '' = only with the item
    key = '',
    items = { 'cherry_tablet', 'tablet' },
    -- ...
}

Config.Laptop = {
    command = 'laptop',
    key = '',
    items = { 'cherry_book_pro', 'cherry_book_one' },
    placeable = true,           -- using the item puts the CherryBook down; anyone next to it opens it with the target
    target = 'auto',            -- 'auto' | 'ox_target' | 'qb-target'
    -- ...
}

Config.Watch = {
    items = { 'cherry_watch' },
    command = 'watch',
    key = 'F6',
    maxApps = 6,
    -- ...
}

Config.Pods = {
    items = { 'cherry_pods' },
    voiceVolume = 0.3,          -- other players' voices with Noise Cancellation (0.0 - 1.0)
    batteryMinutes = 300,       -- how long a full charge lasts while worn
    callVolume = 100,           -- pma-voice call volume while the Pods are in
    -- ...
}

Prices, colours and hand props

Config.Devices holds the label, price, weight, default colour and the colours of every device (phone, tablet, bookpro, bookone, pods, watch). The colour is stored on the item and shown on the device frame, in the item tooltip and in the store.

Device

Price

Colour ids

phone

2499

obsidian_black, silver_titanium, mist_blue, cherry_red, rose_pink, sunset_orange, deep_purple, sage_green

tablet

3299

space_black, silver, natural_titanium, deep_blue, cherry_red, rose_pink

bookpro

4999

space_black, silver

bookone

2799

midnight, starlight, sky_blue, cherry_red

pods

649

white

watch

999

jet_black, silver, rose_gold, cherry_red

The hand props are set per device in Config.Devices.<device>.prop (model, bone, offset, rotation) and can be set per colour (prop = 'model_name'). If a model isn't streamed, the vanilla prop is used.

CHERRY Store

Lua
Config.Store = {
    enabled  = true,
    accounts = { 'bank', 'cash' },
    blip     = { sprite = 521, color = 1, scale = 0.75, label = { en = 'CHERRY Store', tr = 'CHERRY Mağazası' } },
    ped      = 'a_f_y_business_02',    -- false = no ped, only a marker
    locations = {
        vector4(194.12, -935.36, 30.69, 145.0),     -- Legion Square
    },
}

Admins

Lua
Config.Admins = {
    discord   = {
        '123456789012345678',   -- your Discord user ID
    },
    framework = true,           -- also your framework's admins (ACE vorty.admin, QBCore admin / god)
}

The Discord ID is the long number: Discord → Developer Mode → right-click your name → Copy User ID. CHERRY admins give blue checks and run the other in-app admin actions. It is checked on the server only.

Bank and money apps

Lua
Config.Flecca = {
    enabled  = true,
    name     = 'Flecca Bank',
    provider = 'auto',          -- 'auto' | 'tgiann-bank' | 'Renewed-Banking' | 'okokBanking' | 'qb-banking' | 'framework'
    admins   = { '123456789012345678' },  -- Discord IDs of the people who run campaigns
    limits   = { min = 1, max = 1000000, maxBonus = 100000, maxPercent = 50 },
    chips = { enabled = true, value = 1, minRedeem = 50, maxPerDay = 1000, staffEarn = false, maxRate = 0.5 },
}

Config.Jobby = {
    enabled = true,
    invoiceMax = 100000,
    commission = 0.10,          -- share of a paid invoice for the employee who wrote it
    society = 'auto',           -- qb-banking / qb-management / Renewed-Banking / esx_addonaccount, or false
}

Config.TapPay = { enabled = true, range = 3.0, timeout = 60, min = 1, max = 250000, business = true }

Flecca Chips: admins open a chip campaign for a business in the app ("spend $100, get 10 chips"). Players collect chips with every purchase there and turn them into bank money. Other scripts can count a purchase with exports['vorty-cherry']:AddSpend(source, 'beanmachine', amount) (server).

Garage and valet

Lua
Config.Garage = 'auto'          -- 'auto' = JG Advanced Garages when installed, otherwise the framework's columns | 'jg' | 'qb'

Config.Valet = {
    enabled  = true,
    price    = 250,
    account  = 'bank',
    ped      = 's_m_y_valet_01',
    distance = { min = 90, max = 170 },    -- metres from the player where the valet starts
    timeout  = 240,
}

City apps

Setting

App

Config.Carrier

Carrier app (default HonorCell): starter balance and data / SMS / minute packages. With enforce = true texts use SMS, calls use minutes and internet apps use data.

Config.Food

Munch food delivery: restaurants (job, menu), delivery fees by distance, commission, promo code.

Config.Gov

e-City: licences with fee, approvers jobs, meta (QBCore metadata.licences / esx_license) and an optional item on approval.

Config.Rides

Rides: start fare, fare per km, search radius, commission, driverJobs.

Config.Services

Services app: police, ambulance, mechanic, taxi, lawyer, news, with their jobs. dispatch = true also sends an alert to your dispatch script (Config.Dispatch).

Config.News

News: the reporter jobs that can publish.

Config.Wifi

Wi-Fi networks at venues. Public networks are logged for monitorJobs. The first business passwords are in config_server.lua.

Config.Places

Places in Maps, with reviews.

Config.Freelance

Freelancer gig categories (CherryBook only).

Config.Velvet

Velvet creator memberships: price limits and commission.

Phone features

Setting

What it does

Config.Battery

Battery drain while open and in the pocket, extra drain per use, PowerBank and Magnetic Battery Pack.

Config.FindMy

Tracker update interval, Lost Mode and Device Lock (activationLock).

Config.Tag

CherryTag: tags per character, "Unknown CherryTag" alert time.

Config.SOS

Emergency SOS: /sos command, countdowns, services that get the alert, crash and down detection.

Config.Burner

Burner phone item and its apps.

Config.Demo

The "CHERRY Demo" contact that answers texts and calls.

Config.Calls

Ring time, hidden caller prefix #31#, speaker, conference size, video calls.

Config.Mail

Mail domains players can choose from and reserved names.

Config.Memos

Recorder and voicemail limits.

Config.Music

Radio stations, YouTube search, music heard by nearby players (nearby).

Config.NearbyRing

Ringtones heard by nearby players.

Config.Drive

CHERRY Drive (phone music through the car). Needs Config.Music.nearby.enabled.

Config.AirShare

CherryShare (send a contact, photo or place to a player next to you).

Config.Setup

Setup Assistant and the apps a new device starts with (defaultApps).

Config.Social

Chirp length, post cooldown and verified handles.

Config.WordFilter

Words masked or blocked in social apps (private = true also in private chats).

Config.Retention

How many days messages, calls, mail, ads and other data are kept.

Config.DisabledApps

Apps to turn off.

Config.Wallpapers, Config.CustomWallpaperHosts

Built-in wallpapers and the hosts allowed for wallpaper links.

Config.QBPhoneCompat

qb-phone compatibility (mail and notifications from other scripts).

Config.Updates

The Software Update screen and its notes.

Camera and photos

Lua
Config.Camera = {
    enabled   = true,
    storage   = 'local',     -- without Fivemanage: 'local' (vorty-cherry/media, served by the server) | 'database'
    maxPhotos = 100,         -- per character
    video     = true,
    videoAudio = true,
    videoSeconds = 30,
    width     = 1920,
    quality   = 0.92,
    mouseLook = true,
    walking   = true,
}

config_server.lua

Lua
ConfigServer = {
    Fivemanage = {
        token  = '',        -- Media token from fivemanage.com
        folder = '',
    },
    Upload = { url = '', headers = {}, formField = 'file', urlField = 'data.url' },  -- other upload service (optional)
    YoutubeKey = '',        -- optional YouTube Data API v3 key for music search
    WifiPasswords = {
        burgershot  = 'burger123',
        beanmachine = 'coffee42',
        bahama      = 'party2026',
    },
    Logs = {
        botName  = 'CHERRY Logs',
        webhook  = '',      -- one webhook for every channel
        webhooks = {        -- optional: a channel's own webhook ('' = uses `webhook`)
            money    = '',
            security = '',
            safety   = '',
            admin    = '',
        },
    },
}

Log channel

What is logged

money

Transfers, Tap to Pay, Flecca deposits, withdrawals, bonuses and chips, invoices, licence fees, food orders and refunds, Velvet, carrier packages

security

Devices erased past Device Lock, UnlockDevice, passcode lockouts

safety

Emergency SOS, Lost Mode, CherryTag paired, hidden, found or removed

admin

Flecca campaigns, licence decisions, blue checks, /givecherry

Every line shows the character, server ID, citizenid and Discord. Message texts, passcodes, photos and positions (except an SOS) are never logged.

Last updated: December 6, 2026