> For the complete documentation index, see [llms.txt](https://scythecode-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://scythecode-studios.gitbook.io/docs/fivem-scripts/store-robbery/installation/misc.md).

# Misc

{% hint style="info" %}
Misc configs contain anything progression wise i.e levels, store mastery and achievements
{% endhint %}

***

> scs\_robberies/shared/misc/\*.lua

***

{% tabs %}
{% tab title="Achievements" %}

```lua
Achievements = {
    achievements = {
        {
            id = 'first_heist',
            name = 'First Heist',
            description = 'Complete your first robbery',
            icon = 'fa-solid fa-check',
            progress_stat = 'totalRobberies', -- the stat to track for progress
            max = 1, -- number of robberies needed to complete the achievement
            reward = 500, -- cash reward for completing the achievement
            xp = 50, -- XP reward for completing the achievement
        },
        {
            id = 'ten_robberies',
            name = '10 Robberies',
            description = 'Complete 10 robberies',
            icon = 'fa-solid fa-trophy',
            progress_stat = 'totalRobberies',
            max = 10,
            reward = 2000,
            xp = 200,
        },
        {
            id = 'hundred_items',
            name = '100 Items Stolen',
            description = 'Steal 100 items total',
            icon = 'fa-solid fa-box',
            progress_stat = 'totalItemsStolen',
            max = 100,
            reward = 5000,
            xp = 500,
        },
        {
            id = 'hundred_k_earned',
            name = '$100K Earned',
            description = 'Earn $100,000 total',
            icon = 'fa-solid fa-dollar-sign',
            progress_stat = 'totalEarnings',
            max = 100000,
            reward = 10000,
            xp = 1000,
        },
    }
}
return Achievements
```

{% endtab %}

{% tab title="Levels" %}

```lua
Levels = {
    levels = {
        { level = 1, xp_required = 0, store = 'clothing_store', money_bonus = 0, xp_bonus = 0 }, -- money and xp bonus is % increase
        { level = 2, xp_required = 5000, item = 'lockpick', quantity = 1, money_bonus = 5, xp_bonus = 5 },
        { level = 3, xp_required = 10000, item = 'advanced_lockpick', quantity = 1, money_bonus = 7, xp_bonus = 7 },
        { level = 4, xp_required = 15000, item = 'thermite', quantity = 1, money_bonus = 10, xp_bonus = 10 },
        { level = 5, xp_required = 20000, item = 'hacking_device', quantity = 1, money_bonus = 12, xp_bonus = 12 },
        { level = 6, xp_required = 25000, item = 'advanced_lockpick', quantity = 1, money_bonus = 14, xp_bonus = 14 },
        { level = 7, xp_required = 30000, item = 'advanced_lockpick', quantity = 1, money_bonus = 16, xp_bonus = 16 },
        { level = 8, xp_required = 35000, item = 'advanced_lockpick', quantity = 1, money_bonus = 18, xp_bonus = 18 },
        { level = 9, xp_required = 40000, item = 'advanced_lockpick', quantity = 1, money_bonus = 20, xp_bonus = 20 },
        { level = 10, xp_required = 45000, item = 'advanced_lockpick', quantity = 2, money_bonus = 22, xp_bonus = 22 },
        { level = 11, xp_required = 50000, item = 'advanced_lockpick', quantity = 1, money_bonus = 24, xp_bonus = 24 },
        { level = 12, xp_required = 55000, item = 'advanced_lockpick', quantity = 1, money_bonus = 26, xp_bonus = 26 },
        { level = 13, xp_required = 60000, item = 'advanced_lockpick', quantity = 1, money_bonus = 28, xp_bonus = 28 },
        { level = 14, xp_required = 65000, item = 'advanced_lockpick', quantity = 1, money_bonus = 30, xp_bonus = 30 },
        { level = 15, xp_required = 70000, store = 'high_end_clothing_store', money_bonus = 32, xp_bonus = 32 },
        { level = 16, xp_required = 75000, item = 'advanced_lockpick', quantity = 1, money_bonus = 34, xp_bonus = 34 },
        { level = 17, xp_required = 80000, item = 'advanced_lockpick', quantity = 1, money_bonus = 36, xp_bonus = 36 },
        { level = 18, xp_required = 85000, item = 'advanced_lockpick', quantity = 1, money_bonus = 38, xp_bonus = 38 },
        { level = 19, xp_required = 90000, item = 'drill', quantity = 1, money_bonus = 40, xp_bonus = 40 },
        { level = 20, xp_required = 95000, item = 'hacking_device', quantity = 2, money_bonus = 42, xp_bonus = 42 },
        { level = 21, xp_required = 100000, item = 'advanced_lockpick', quantity = 1, money_bonus = 44, xp_bonus = 44 },
        { level = 22, xp_required = 105000, item = 'advanced_lockpick', quantity = 1, money_bonus = 46, xp_bonus = 46 },
        { level = 23, xp_required = 110000, item = 'advanced_lockpick', quantity = 1, money_bonus = 48, xp_bonus = 48 },
        { level = 24, xp_required = 115000, item = 'advanced_lockpick', quantity = 1, money_bonus = 50, xp_bonus = 50 },
        { level = 25, xp_required = 120000, item = 'advanced_lockpick', quantity = 1, money_bonus = 52, xp_bonus = 52 },
        { level = 26, xp_required = 125000, item = 'advanced_lockpick', quantity = 1, money_bonus = 54, xp_bonus = 54 },
        { level = 27, xp_required = 130000, item = 'advanced_lockpick', quantity = 1, money_bonus = 56, xp_bonus = 56 },
        { level = 28, xp_required = 135000, item = 'advanced_lockpick', quantity = 1, money_bonus = 58, xp_bonus = 58 },
        { level = 29, xp_required = 140000, item = 'advanced_lockpick', quantity = 1, money_bonus = 60, xp_bonus = 60 },
        { level = 30, xp_required = 145000, item = 'thermite', quantity = 3, money_bonus = 62, xp_bonus = 62 }
    },
    -- Upgrades system
    upgrades = {
        lockpicking = {
            name = 'Lockpicking Mastery',
            description = 'Improve your lockpicking speed and success rate',
            icon = 'lockpicking_upgrade',
            max_level = 5,
            xp_per_use = 10, -- XP gained per successful lockpick
            levels = {
                { level = 1, cost = 5000, xp_required = 500, time_reduction = 10, success_bonus = 5, description = '+10% speed, +5% success rate' },
                { level = 2, cost = 10000, xp_required = 1000, time_reduction = 20, success_bonus = 10, description = '+20% speed, +10% success rate' },
                { level = 3, cost = 20000, xp_required = 2000, time_reduction = 30, success_bonus = 15, description = '+30% speed, +15% success rate' },
                { level = 4, cost = 40000, xp_required = 4000, time_reduction = 50, success_bonus = 25, description = '+50% speed, +25% success rate' },
                { level = 5, cost = 75000, xp_required = 8000, time_reduction = 75, success_bonus = 40, description = '+75% speed, +40% success rate' }
            }
        },
        hacking = {
            name = 'Hacking Expertise',
            description = 'Faster alarm hacks and reduced difficulty',
            icon = 'hacking_upgrade',
            max_level = 5,
            xp_per_use = 15, -- XP gained per successful hack
            levels = {
                { level = 1, cost = 7500, xp_required = 500, time_reduction = 10, difficulty_reduction = 0, description = '+10% speed' },
                { level = 2, cost = 15000, xp_required = 1000, time_reduction = 20, difficulty_reduction = 1, description = '+20% speed, -1 difficulty' },
                { level = 3, cost = 30000, xp_required = 2000, time_reduction = 35, difficulty_reduction = 0, description = '+35% speed' },
                { level = 4, cost = 50000, xp_required = 4000, time_reduction = 50, difficulty_reduction = 2, description = '+50% speed, -2 difficulty' },
                { level = 5, cost = 100000, xp_required = 8000, time_reduction = 70, difficulty_reduction = 3, description = '+70% speed, -3 difficulty' }
            }
        },
        safecracking = {
            name = 'Safecracking Pro',
            description = 'Enhanced safe manipulation and reward bonuses',
            icon = 'safecracking_upgrade',
            max_level = 5,
            xp_per_use = 20, -- XP gained per successful safecrack
            levels = {
                { level = 1, cost = 6000, xp_required = 500, time_reduction = 10, reward_bonus = 5, description = '+10% speed, +5% rewards' },
                { level = 2, cost = 12000, xp_required = 1000, time_reduction = 20, reward_bonus = 10, description = '+20% speed, +10% rewards' },
                { level = 3, cost = 25000, xp_required = 2000, time_reduction = 30, reward_bonus = 15, description = '+30% speed, +15% rewards' },
                { level = 4, cost = 45000, xp_required = 4000, time_reduction = 45, reward_bonus = 25, description = '+45% speed, +25% rewards' },
                { level = 5, cost = 85000, xp_required = 8000, time_reduction = 65, reward_bonus = 40, description = '+65% speed, +40% rewards' }
            }
        }
    }
}
return Levels
```

{% endtab %}

{% tab title="Store Mastery" %}

```lua
Store_mastery = {
    store_mastery = {
  
        clothing_store = {
            display_name = 'Clothing Store',
            robberies_for_max = 100, -- Number of robberies needed for 100% proficiency
        },
        
        high_end_clothing_store = {
            display_name = 'High-End Clothing Store',
            robberies_for_max = 150,
        },
    }
}
return Store_mastery
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://scythecode-studios.gitbook.io/docs/fivem-scripts/store-robbery/installation/misc.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
