Docs/Orb Phone/Configuration

Configuration

Almost everything is tuned from shared/config.lua and a handful of convars. All money- and access-related logic is validated server-side regardless of config.

Convars (server.cfg)

ConvarDefaultPurpose
set orb-phone:frameworkautoauto / qbx / esx / qb — force the framework if you run more than one core.
set orb-phone:localeenDefault language: en / es / fr / pt. Players can override it in Settings.
set orb-phone:camera_webhookUpload webhook for the Camera app.
set orb-phone:debugfalseVerbose console logs.

shared/config.lua

KeyWhat it controls
Config.PhoneItemThe inventory item name (default phone).
Config.PhoneNumberFormatThe XXX-XXX number format.
Config.PhoneBindingcharacter (default) or account — share the number/data across a player's characters.
Config.ServicesMaps each service (police/EMS/mechanic) to a framework job + request/respond gates.
Config.YellowPagesSeed "official" businesses for the Hub directory.
Config.GaragesCoords per garage name for the Garage app's "Set GPS". Adjust to your map.
Config.MusicOrb FM catalog (config-driven audio sources).
Config.WalletCrypto market: tickSeconds, the trading account, and coins (basePrice + volatility).
Config.CameraPhoto upload webhook + JPG quality (0–1).
Config.WebhooksDiscord auditing for the event bus (see below).

Discord webhooks (Config.Webhooks)

The server event bus can mirror events to Discord. Off by default and a complete no-op while URLs are empty.

lua
Config.Webhooks = {
    enabled = false,                       -- master switch
    urls = {                               -- one webhook per logical channel
        audit = '', bank = '', calls = '', chat = '',
    },
    logEvents = {                          -- event -> channel
        ['bank:transfer']      = 'bank',
        ['call:started']       = 'calls',
        ['call:ended']         = 'calls',
        ['message:received']   = 'chat',
        ['service:dispatched'] = 'audit',
    },
    highValueThreshold = 50000,            -- transfers >= this also go to 'audit'
}

See Events & Exports for the full event catalog.