⚙️Configuration

Configuration guide of Mutliplayer Fossil Hunt.

Config.lua

Config = {}

Config.Framework = "auto" -- Determines which framework to use: auto, esx, qb, qbox
Config.Target = true -- Set to true if you want to use target system

Config.Locales = {}
Config.Language = "en" -- en, de, fr, es, pt, it, nl, pl, sv, ar, jp, zh, he, fi, no
Config.ProgressBar = "lib" -- lib or qb
Config.digTime = 2 -- dig time when digging nothing, in seconds

Config.Job = {
    enabled = false, -- true: only players with listed jobs can see the NPC and interact with it
    jobs = { -- allowed job names
        'fossil', -- example job, replace with your job name
        -- 'archaeologist',
    },
}

function giveKey(vehicle, plate)
    if GetResourceState('qb-vehiclekeys') == 'started' then
        TriggerEvent("vehiclekeys:client:SetOwner", plate)
    else
        -- your code
    end
end

function setFuel(vehicle)
    if not DoesEntityExist(vehicle) then return end
    if GetResourceState('ox_fuel') == 'started' then
        Entity(vehicle).state.fuel = 100
        return
    end
    if GetResourceState('LegacyFuel') == 'started' then
        exports['LegacyFuel']:SetFuel(vehicle, 100.0)
        return
    end
    if GetResourceState('cdn-fuel') == 'started' then
        exports['cdn-fuel']:SetFuel(vehicle, 100.0)
        return
    end
    if GetResourceState('ps-fuel') == 'started' then
        exports['ps-fuel']:SetFuel(vehicle, 100.0)
        return
    end
    if GetResourceState('stg-fuel') == 'started' then
        exports['stg-fuel']:SetFuel(vehicle, 100.0)
        return
    end
    SetVehicleFuelLevel(vehicle, 100.0)
    DecorSetFloat(vehicle, '_FUEL_LEVEL', 100.0)
end

Config.delivery = {
    npc = "cs_joeminuteman",
    coord = vec4(43.9228, -1313.3883, 28.3189, 324.6807)
}


Config.Levels = {
    {
        level = 1,
        nextLevel = 200, -- Experience needed to reach the next level
    },
    {
        level = 2,
        nextLevel = 400,
    },
    {
        level = 3,
        nextLevel = 800,
    },
    {
        level = 4,
        nextLevel = 1500,
    },
    {
        level = 5,
        nextLevel = false, -- No next level, this is the max level
    }
}

Config.Menu = {
    coord = vec4(315.0173, -705.7099, 28.3188, 337.0935),
    npc = "cs_joeminuteman",

    finish_point = {
        coord = vec3(314.3983, -700.9951, 29.3306),

        marker = {
            color = { r = 0, g = 255, b = 0, a = 150 },
            type = 1,
            size = vector3(2.0, 2.0, 2.0)
        }
    },
    
    vehicle = {
        model = "bison",
        coord = vec4(318.0098, -702.0175, 29.3404, 271.2518),
        plate = {
            active = true,
            prefix = "FOSSIL",
        }
    },

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

Config.Fossils = {
    {
        name = "trex",
        label = "T-Rex",
        prop = "qua_rock_fossil_2b",
        clean_prop = "qua_fossil_2",
        description = "This fossil shows clear signs of exposure and sedimentation, likely dating back millions of years.",
        dig_time = 7, -- in seconds
    },
    {
        name = "body",
        label = "Raptor body",
        prop = "qua_rock_fossil_3",
        clean_prop = "qua_fossil_3",
        description = "This fossil shows clear signs of exposure and sedimentation, likely dating back millions of years.",
        dig_time = 7, -- in seconds
    },
    {
        name = "ammonite",
        label = "Ammonite",
        prop = "qua_rock_fossil_1b",
        clean_prop = "qua_fossil_1",
        description = "This fossil shows clear signs of exposure and sedimentation, likely dating back millions of years.",
        dig_time = 7, -- in seconds
    }
}

Config.Tasks = {
    {
        label = "Fosil Site A",
        icon = "fossile_1.png",
        coord = vec3(-831.0305, -1906.1584, 19.1896),
        radius = 25.0,

        details = "This coastal excavation site stretches along an ancient dried riverbed where Cretaceous sediment layers have been exposed by erosion. Surveys indicate a high concentration of marine invertebrate fossils, particularly ammonite shells preserved in excellent condition. A partial raptor skeleton was also detected near the site's eastern boundary via ground-penetrating radar. Terrain is flat and accessible, making this an ideal starting point for new excavators. Standard scanning and digging equipment is sufficient for the conditions here. Fossils recovered at this site are handed off directly to the regional museum liaison stationed at the delivery point nearby.",
        level = false, -- false means no level requirement, otherwise set to a level number
        players = {
            min = 1, -- min 2
            max = 4, -- max 4
        },
        reward = {
            exp = 50,
            money = 100,
        },

        list = {
            {
                name = "ammonite",
                amount = 2,
            },
            {
                name = "body",
                amount = 1,
            },
        }
    },
    {
        label = "Fosil Site B",
        icon = "fossile_2.png",
        coord = vec3(-831.0305, -1906.1584, 19.1896),
        radius = 25.0,

        details = "Located on a remote highland plateau scarred by ancient volcanic activity, this site sits atop one of the richest fossil beds confirmed in the region. Geological dating places the strata at approximately 70 million years before present, consistent with late Cretaceous fauna. Multiple fossil types have been identified including ammonite clusters, a near-complete raptor skeleton, and early signatures of a large theropod matching T-Rex classification. The elevated terrain and loose rock require experienced excavation technique. All specimens must be processed on-site before transport to preserve their structural integrity during the journey to the delivery point.",
        level = 2,
        players = {
            min = 1,
            max = 4,
        },
        reward = {
            exp = 100,
            money = 1000,
        },

        list = {
            {
                name = "ammonite",
                amount = 2,
            },
            {
                name = "body",
                amount = 2,
            },
            {
                name = "trex",
                amount = 1,
            },
        }
    },
    {
        label = "Fosil Site C",
        icon = "fossile_3.png",
        coord = vec3(-831.0305, -1906.1584, 19.1896),
        radius = 25.0,

        details = "Deep in the interior badlands, this expansive dig zone covers several acres of exposed sedimentary rock dating back to the early Cretaceous. The site was flagged by satellite imaging showing anomalous density patterns beneath the surface, later confirmed as overlapping fossil layers from a prehistoric mass burial event caused by rapid sediment influx. The variety of specimens — including T-Rex, raptor, and ammonite remains — makes this one of the most significant active sites in the region. Coordination between team members is essential here, as fossils are distributed across multiple excavation points spread across a wide area. Precision scanning is strongly recommended before digging.",
        level = 3,
        players = {
            min = 1,
            max = 4,
        },
        reward = {
            exp = 200,
            money = 20000,
        },

        list = {
            {
                name = "trex",
                amount = 3,
            },
            {
                name = "body",
                amount = 4,
            },
            {
                name = "ammonite",
                amount = 4,
            }
        }
    },
    {
        label = "Fosil Site D",
        icon = "fossile_4.png",
        coord = vec3(-831.0305, -1906.1584, 19.1896),
        radius = 25.0,

        details = "Situated inside a geologically unstable canyon system, this high-risk site has yielded some of the most complete and scientifically valuable specimens ever recovered in the region. Subsurface fractures cause ground conditions to shift unpredictably, making two-person team coordination an absolute requirement. The fossil density here is extraordinary — T-Rex cranial fragments, full raptor body segments, and intact ammonite colonies have all been documented within the same excavation layer. Only highly experienced operators should attempt this site. The payout for a successful full excavation run is among the highest available to licensed fossil hunters currently operating in the field.",
        level = 4,
        players = {
            min = 2,
            max = 4,
        },
        reward = {
            exp = 400,
            money = 20000,
        },

        list = {
            {
                name = "trex",
                amount = 5,
            },
            {
                name = "body",
                amount = 5,
            },
            {
                name = "ammonite",
                amount = 6,
            }
        }
    }
}

Last updated