⚙️Configuration

Configuration guide of Treasure Map System.

Config File

Config = {}

Config.Framework = "auto" -- Determines which framework to use: auto, esx, or qb
Config.Target = false -- true or false, if you want to use target or not
Config.Locales = {}
Config.Language = "en" -- en, de, fr, es, pt, ja, ar, zh, tr
Config.ChestModel = "xm_prop_x17_chest_closed"
Config.Shovel = 5000
Config.Distance = 15 -- determines how far the player can be from the treasure chest to dig
Config.ProgressBar = "lib" -- lib or qb

Config.digTime = {
    found = 8000, -- time to dig when treasure is found
    not_found = 2000 -- time to dig when treasure is not found
}

Config.TreasurePoints = {
    vec3(768.6719, 415.0298, 141.7109),
    vec3(1482.0098, 1168.7344, 114.9551),
    vec3(2353.2983, 2586.6448, 46.6676),
    vec(1440.2585, 1091.1105, 114.4058),
    vec3(1220.2814, 1841.1409, 79.2155),
    vec3(1261.7784, 2727.4353, 38.4492),
}

Config.Items = {
    small = "treasure_map_small",
    medium = "treasure_map_medium",
    large = "treasure_map_large",
    shovel = "shovel",
}

Config.Sell = { -- https://docs.fivem.net/docs/game-references/ped-models/
    coord = vec4(-592.5034, -886.3603, 24.9268, 92.4546),
    npc = "s_m_y_dockwork_01",

    blip = { -- https://docs.fivem.net/docs/game-references/blips/
        label = "Sell Treasure Rewards",
        sprite = 587,
        scale = 0.7,
        color = 1,
        visible = true
    }
}

Config.Npc = { -- https://docs.fivem.net/docs/game-references/ped-models/
    coord = vec4(459.5453, -691.4997, 26.6403, 33.1487),
    npc = "cs_joeminuteman",

    blip = { -- https://docs.fivem.net/docs/game-references/blips/
        label = "Treasure Seller",
        sprite = 587,
        scale = 0.7,
        color = 5,
        visible = true
    }
}

Config.Maps = {
    ["small"] = {
        number = 1, -- indicates how much treasure will appear on the map
        price = 2500
    },
    ["medium"] = {
        number = 2,
        price = 5000
    },
    ["large"] = {
        number = 3,
        price = 7500
    }
}

Config.TreasureItems = {
    ["goldbar"] = {
        chance = 25,
        price = 500,
        amount = {
            min = 1,
            max = 2
        }
    },
    ["diamond_ring"] = {
        chance = 25,
        price = 1500,
        amount = {
            min = 1,
            max = 2
        }
    },
    ["diamond"] = {
        chance = 25,
        price = 1000,
        amount = {
            min = 1,
            max = 2
        }
    },
    ["goldchain"] = {
        chance = 25,
        price = 300,
        amount = {
            min = 1,
            max = 2
        }
    },
}

Last updated