# Config

shared/config.lua

```lua
Config = {}

--[[====[ SPARK-DEVELOPMENTS ]====]]
-- Thank you for buying this resource!
-- DOCS - https://spark-developments.gitbook.io

--[[====[ DEALER SETTINGS ]====]]
Config.Location = vector4(1662.06, 4941.29, 41.97, 331.24) -- Dealer Location
Config.TogglePed = true -- Spawn dealer ped at location
Config.DealerModel = 's_m_y_dealer_01' -- Ped model for dealer if enabled
Config.ToggleBlip = true -- Show blip on map

--[[====[ ITEMS CONFIGURATION ]====]]
Config.Shop = {
    Categories = {
        { id = "all", name = "All Items", icon = "fas fa-th" },
        { id = "weapons", name = "Weapons", icon = "fas fa-gun" },
        { id = "other", name = "Other Items", icon = "fas fa-box" },
        { id = "tools", name = "Tools", icon = "fas fa-wrench" }
    },

    Items = {
        -- Weapons
        { name = "weapon_pistol", title = "Pistol", price = 1500, category = "weapons", requiredLevel = 4, stock = 5 },
        { name = "weapon_knife", title = "Knife", price = 500, category = "weapons", requiredLevel = 1, stock = 10 },
        { name = "weapon_bat", title = "Baseball Bat", price = 200, category = "weapons", requiredLevel = 2, stock = 15 },

        -- Other Items
        { name = "lockpick", title = "Lockpick", price = 100, category = "other", requiredLevel = 1, stock = 20 }
    },

    -- Delivery methods:
    -- "crate"   - spawns in a random location and the player will have to pick it up
    -- "van"     - drives to the player and delivers the order
    -- "instant" - gives the player items instantly
    DeliveryMethod = "crate",

    StockEnabled = true -- Enable/disable stock system (if false, unlimited stock)
}

--[[====[ PROGRESSION SYSTEM ]====]]
Config.EnableLevels = true -- Enable/disable the level system and level bar
Config.ExpPerDollar = 1 -- Experience points gained per dollar spent (e.g., $100 purchase = 100 exp)
Config.ExpPerLevel = 500 -- Experience points needed to level up

--[[====[ MISSIONS CONFIGURATION ]====]]
Config.Missions = { -- You can't add more missions!
    drug_delivery = {
        enabled = true, -- Toggle Mission
        reward = 2500, -- Money reward
        difficulty = 'easy', -- easy, medium, hard
        duration = 10, -- Mission duration (in minutes)
        requiredLevel = 1, -- Required level in order to start this mission
        experienceGain = 50, -- Amount of experience to be gained when completing this mission
        cooldownSeconds = 300 -- Cooldown before starting this mission again (in seconds)
    },
    arms_transport = {
        enabled = true,
        reward = 5000,
        difficulty = 'medium',
        duration = 15, -- minutes
        requiredLevel = 3,
        experienceGain = 100,
        cooldownSeconds = 600 -- 10 minutes
    },
    bounty = {
        enabled = true,
        reward = 7500,
        difficulty = 'hard',
        duration = 20, -- minutes
        requiredLevel = 5,
        experienceGain = 150,
        cooldownSeconds = 900 -- 15 minutes
    }
}

--[[====[ SD_GANGS INTEGRATION ]====]]
Config.SDGangsIntegration = true -- Adds gang points as a payment method when using SD_Gangs
Config.GangPointsMultiplier = 8 -- Example: $1000 item costs 8000 gang points
```


---

# Agent Instructions: 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:

```
GET https://spark-developments.gitbook.io/dev/roleplay/blackmarket/config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
