Docs/ORB Playtime Rewards/Configuration

Configuration

All configuration is in config.lua (not escrowed).

Core Settings

lua
Config.Debug           = false
Config.Locale          = 'en'              -- 'en' | 'es' | '' for auto-detect
Config.Keybind         = 'O'               -- key to open the UI (false to disable)
Config.Command         = 'playtimerewards' -- chat command (false to disable)
Config.RequestCooldown = 2                 -- anti-spam cooldown (seconds)
Config.UpdateInterval  = 30000             -- ms between playtime refreshes while UI is open

Config.MoneyAccount    = 'cash'            -- 'cash' | 'bank'
Config.InventorySystem = 'auto'            -- 'auto' or an explicit inventory name
Config.ItemImagePath   = ''                -- empty = auto-detect from inventory

Config.AutoHideHud     = true
Config.AutoHideChat    = false

Milestones

Config.Milestones is an array of 52 entries. Each defines the hours required, a label, an image, and the rewards:

lua
Config.Milestones = {
    [1] = {
        hours  = 1,
        label  = 'Water x5',
        image  = 'water',
        rewards = {
            { type = 'item', name = 'water', amount = 5 },
        },
    },
    [10] = {
        hours  = 30,
        label  = 'Cash $10,000',
        image  = 'money',
        rewards = {
            { type = 'money', amount = 10000 },
        },
    },
    -- ... up to [52] (2,500 hours)
}

Reward types are money (amount) and item (name, amount). Weapons are granted as items via your inventory.

Commands

CommandPermissionDescription
/playtimerewardsNoneToggle the rewards UI
/playtimeresetAdminReset playtime (only when Config.Debug = true)
/playtimeset AdminSet playtime to a number of hours (only when Config.Debug = true)

Exports (Client)

lua
exports['orb_playtime_rewards']:OpenUI()
exports['orb_playtime_rewards']:CloseUI()
local open = exports['orb_playtime_rewards']:IsOpen()