> For the complete documentation index, see [llms.txt](https://shift-studios.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shift-studios.gitbook.io/docs/new/editor.md). Agents can also search and read this documentation through its [MCP server](https://shift-studios.gitbook.io/docs/~gitbook/mcp).

# Daily

Transform Your Server With Shift Studios — Powerful, Optimized, And Reliable Resources Built To Improve Every Experience.

<figure><img src="https://4062160621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgqh3gjuJzDAWNXTD9sEE%2Fuploads%2FbcixAExcxhj2qmK4IRZv%2F1ea7ed15-d8d4-4c31-9170-fea2393f268d.png?alt=media&amp;token=0e136bd1-054f-4bc3-96f2-c64a204e713b" alt=""><figcaption></figcaption></figure>

### Installation

{% stepper %}
{% step %}

### Daily

Read Everything Below To Install
{% endstep %}

{% step %}

### Drag & Drop

Drag & Drop The Resource Into Your FiveM Server
{% endstep %}

{% step %}

### Ensure The Resource

Make Sure To Ensure shift-daily In Your Server CFG.
{% endstep %}

{% step %}

### Install The SQL Table

```sql
CREATE TABLE IF NOT EXISTS `shift_daily` (
  `identifier` varchar(80) NOT NULL,
  `streak` int NOT NULL DEFAULT 0,
  `last_claim_day` int NOT NULL DEFAULT 0,
  `last_claim_at` bigint NOT NULL DEFAULT 0,
  `last_claim_date` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

```

{% endstep %}

{% step %}

### Configure Resource

Make Sure To Configure The Resource To Your Liking

You Can Configure Your Discord Logs In server/config.discord.lua

{% code expandable="true" %}

```lua
-- ⚫ ███████╗██╗  ██╗██╗███████╗████████╗    ███████╗████████╗██╗   ██╗██████╗ ██╗ ██████╗ ███████╗ ⚫
-- ⬛ ██╔════╝██║  ██║██║██╔════╝╚══██╔══╝    ██╔════╝╚══██╔══╝██║   ██║██╔══██╗██║██╔═══██╗██╔════╝ ⬛
-- ⚫ ███████╗███████║██║█████╗     ██║       ███████╗   ██║   ██║   ██║██║  ██║██║██║   ██║███████╗ ⚫
-- ⬛ ╚════██║██╔══██║██║██╔══╝     ██║       ╚════██║   ██║   ██║   ██║██║  ██║██║██║   ██║╚════██║ ⬛
-- ⚫ ███████║██║  ██║██║██║        ██║       ███████║   ██║   ╚██████╔╝██████╔╝██║╚██████╔╝███████║ ⚫
-- ⬛ ╚══════╝╚═╝  ╚═╝╚═╝╚═╝        ╚═╝       ╚══════╝   ╚═╝    ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝ ⬛

Config = {}

-- General
Config.Debug = false
Config.Framework = 'auto' -- auto, esx, qbcore, qbox
Config.Inventory = 'auto' -- auto, ox_inventory, qb-inventory, framework
Config.Command = 'daily'
Config.ResetAfterInactivityDays = 7
Config.DateMode = 'calendar' -- calendar = once per real day, interval = every X hours
Config.IntervalHours = 24
Config.CloseKey = 'Escape'

-- Database
Config.Database = {
    AutoCreate = true,
    AutoMigrateLegacy = true,
    LegacyTable = 'thebluffs_dailyrewards'
}

-- Framework account mapping.
-- Edit these if your economy uses different money account names.
Config.Accounts = {
    esx = {
        money = 'money',
        bank = 'bank',
        black_money = 'black_money'
    },
    qbcore = {
        money = 'cash',
        bank = 'bank',
        black_money = 'black_money'
    },
    qbox = {
        money = 'cash',
        bank = 'bank',
        black_money = 'black_money'
    }
}

-- Notifications
-- Providers: auto, ox_lib, esx, qbcore, qbox, okok, mythic, native, custom
Config.Notify = {
    Provider = 'auto',
    Duration = 5000,
    Position = 'top',
    CustomEvent = '' -- used when Provider = 'custom'
}

-- Optional custom notification hook. Return true when your notification was handled.
Config.CustomNotify = function(data)
    return false
end

Config.Notifications = {
    Claimed = {
        title = 'Daily Rewards',
        description = 'You Claimed Day %s Reward',
        type = 'success',
        icon = 'gift'
    },
    AlreadyClaimed = {
        title = 'Daily Rewards',
        description = 'You Already Claimed Today\'s Reward',
        type = 'error',
        icon = 'clock'
    },
    InventoryFull = {
        title = 'Daily Rewards',
        description = 'You Do Not Have Enough Inventory Space',
        type = 'error',
        icon = 'boxes-stacked'
    },
    InvalidReward = {
        title = 'Daily Rewards',
        description = 'The Reward Could Not Be Processed',
        type = 'error',
        icon = 'triangle-exclamation'
    },
    ResetStreak = {
        title = 'Daily Rewards',
        description = 'Your Streak Was Reset Due To Inactivity',
        type = 'inform',
        icon = 'rotate-left'
    },
    Busy = {
        title = 'Daily Rewards',
        description = 'Your Reward Is Already Being Processed',
        type = 'inform',
        icon = 'clock'
    }
}

-- UI
Config.UI = {
    Brand = 'Shift Studios',
    Title = 'Daily Rewards',
    Subtitle = 'Claim Your Daily Login Rewards',
    PrimaryColor = '#ffffff', -- Main UI accent. Change this one hex value to recolor interactive accents.
    Logo = '', -- Reserved for custom UI extensions. The default UI uses a clean built-in gift icon.
    UseOxInventoryImages = true, -- Uses reward.item + .png for the featured reward image, including money rewards.
    ImagePath = 'nui://ox_inventory/web/images/',
    CurrencyIcon = '$',
    StreakLabel = 'Current Streak',
    ResetText = 'Stay Active To Keep Your Reward Streak Moving',
    CycleLabel = nil -- nil = automatically uses the number of configured reward days
}

-- rewardType:
-- item    = inventory item
-- weapon  = inventory weapon item
-- money   = framework money/account
-- account = alias of money
-- Base setup: 30 days of clean cash rewards.
-- Change any amount below to fit your server economy.
-- To use bank money instead, change account/item from 'money' to 'bank'.
-- Optional per reward: image = 'https://...' or 'nui://resource/path/image.png' overrides the automatic item image.
Config.Rewards = {
    [1] = {
        label = 'Cash',
        item = 'money',
        amount = 50000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [2] = {
        label = 'Cash',
        item = 'money',
        amount = 60000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [3] = {
        label = 'Cash',
        item = 'money',
        amount = 70000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [4] = {
        label = 'Cash',
        item = 'money',
        amount = 80000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [5] = {
        label = 'Cash',
        item = 'money',
        amount = 90000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [6] = {
        label = 'Cash',
        item = 'money',
        amount = 100000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [7] = {
        label = 'Cash',
        item = 'money',
        amount = 110000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [8] = {
        label = 'Cash',
        item = 'money',
        amount = 120000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [9] = {
        label = 'Cash',
        item = 'money',
        amount = 130000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [10] = {
        label = 'Cash',
        item = 'money',
        amount = 140000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [11] = {
        label = 'Cash',
        item = 'money',
        amount = 150000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [12] = {
        label = 'Cash',
        item = 'money',
        amount = 160000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [13] = {
        label = 'Cash',
        item = 'money',
        amount = 170000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [14] = {
        label = 'Cash',
        item = 'money',
        amount = 180000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [15] = {
        label = 'Cash',
        item = 'money',
        amount = 190000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [16] = {
        label = 'Cash',
        item = 'money',
        amount = 200000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [17] = {
        label = 'Cash',
        item = 'money',
        amount = 210000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [18] = {
        label = 'Cash',
        item = 'money',
        amount = 220000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [19] = {
        label = 'Cash',
        item = 'money',
        amount = 230000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [20] = {
        label = 'Cash',
        item = 'money',
        amount = 240000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [21] = {
        label = 'Cash',
        item = 'money',
        amount = 250000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [22] = {
        label = 'Cash',
        item = 'money',
        amount = 260000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [23] = {
        label = 'Cash',
        item = 'money',
        amount = 270000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [24] = {
        label = 'Cash',
        item = 'money',
        amount = 280000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [25] = {
        label = 'Cash',
        item = 'money',
        amount = 290000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [26] = {
        label = 'Cash',
        item = 'money',
        amount = 300000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [27] = {
        label = 'Cash',
        item = 'money',
        amount = 325000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [28] = {
        label = 'Cash',
        item = 'money',
        amount = 350000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [29] = {
        label = 'Cash',
        item = 'money',
        amount = 400000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    },
    [30] = {
        label = 'Cash',
        item = 'money',
        amount = 500000,
        rewardType = 'money',
        account = 'money',
        description = 'Clean Cash'
    }
}

```

{% endcode %}
{% endstep %}

{% step %}

### Restart / Start Your Server

Ensure Everything Is Working Well & Enjoy !!
{% endstep %}
{% endstepper %}
