Quests

File Path: shared/config.quests.lua

Here you will find all of the information required for configuring the quests for your needs. You can add new pages with quests, new quests and change the reset times etc.


Config File

Config["Quests"] = {
    ["ResetTimes"] = {
        /**
            ** Day Values - Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Everyday, Never
            ** Hour Values - 0-23
            ** Minute Values - 0-59
            ** If any value is not included here, a message will be sent to the console.
        **/
        ["daily"] = {
            ["Day"] = "Everyday",
            ["Hour"] = 19,
            ["Minute"] = 48
        },
        ["weekly"] = {
            ["Day"] = "Tuesday",
            ["Hour"] = 14,
            ["Minute"] = 0
        },
        ["milestones"] = {
            ["Day"] = "Never",
            ["Hour"] = 0,
            ["Minute"] = 0
        },
    },

    ["Main"] = {
        /**
            ** Amount - How many mission will be generated at every reset time.
            ** If you want it to be infinite (all of the missions in the config file) set it to 0.
        **/
        ["daily"] = {
            ["Amount"] = 1,
        },
        ["weekly"] = {
            ["Amount"] = 7,
        },
        ["milestones"] = {
            ["Amount"] = 0,
        },
    },

    ["Pages"] = {
        ["daily"] = {
            name = "daily",
            title = "Daily quests",
            desc = "Complete 1 mission per day for rewards.",
            icon = "daily",
            isLocked = false,
            id = 1,
        },
        ["weekly"] = {
            name = "weekly",
            title = "Weekly quests",
            desc = "Complete 7 missions per week for rewards.",
            icon = "weekly",
            isLocked = false,
            id = 2,
        },
        ["milestones"] = {
            name = "milestones",
            title = "Milestones",
            desc = "Complete milestones for rewards and other goodiess.",
            icon = "milestone",
            isLocked = true,
            id = 3,
        },
    },

    /**
        ** Event
        ** Event that is triggered when the mission above is completed
        ** Exmaple: sp-houserobbery:client:clear-everything is triggered on the client that has done the house robbery
        ** and this script adds an event handler to id so it can add progress to the mission too.

        ** Resources that can invoke this event
        ** If the resource that is triggering the event is not included here, nothing will be triggered and no progress tracked.
        ** This is anti-cheat measure to prevent people from triggering the event from other resources/lua executors.
        ** IMPORTANT!! FIRST CONSIDER THE CHEATER SECTION IN config.main.lua
    **/
    ["Missions"] = {
        ["daily"] = {
            [1] = {
                name = "Break a Car",
                desc = "Break a car 10 times to receive cool rewards.",
                event = "sp-vehiclekeys:client:lockpicked-vehicle",
                progress = 0,
                progressNeeded = 10,
                isComplete = false,
                isClaimed = false,

                resourcesThatCanInvokeThisEvent = {
                    "qb-vehiclekeys"
                },
                rewards = {
                    [1] = {
                        name = "rubber",
                        label = "Rubber",
                        amount = 100,
                        icon = "rubber.png" -- From inventory path
                    },
                }
            },
            [2] = {
                name = "Disassemble a Bench",
                desc = "Disassemble a bench 20 times to receive cool rewards.",
                event = "bd-hacking:client:robbed-bench",
                progress = 0,
                progressNeeded = 20,
                isComplete = false,
                isClaimed = false,

                resourcesThatCanInvokeThisEvent = {
                    "qb-vehiclekeys"
                },
                rewards = {
                    [1] = {
                        name = "weapon_axe",
                        label = "Axe",
                        amount = 1,
                        icon = "WEAPON_AXE.png" -- From inventory path
                    },
                }
            },
            [3] = {
                name = "Rob a House",
                desc = "Rob a house 2 times to receive cool rewards.",
                event = "bd-heists:client:robbed-house",
                progress = 0,
                progressNeeded = 2,
                isComplete = false,
                isClaimed = false,

                resourcesThatCanInvokeThisEvent = {
                    "qb-vehiclekeys"
                },
                rewards = {
                    [1] = {
                        name = "goldbar",
                        label = "Gold Bar",
                        amount = 3,
                        icon = "goldbar.png" -- From inventory path
                    },
                }
            },
        },
        ["weekly"] = {
            -- Week 1
            -- Dealers
            [1] = {
                name = "Make Joints",
                desc = "Make 200 joints to receive cool rewards.",
                event = "sp-jointroller:client:make-djonka",
                progress = 0,
                progressNeeded = 200,
                isComplete = false,
                isClaimed = false,

                resourcesThatCanInvokeThisEvent = {
                    "sp-jointrolling"
                },
                rewards = {
                    [1] = {
                        name = "money",
                        label = "Money",
                        amount = 1000,
                        icon = "money.png" -- From inventory path
                    },
                }
            },
            [2] = {
                name = "Make Cocaine",
                desc = "Make 100 packs of cocaine to receive cool rewards.",
                event = "d3MBA-cocaine:client:PackingCocaine",
                progress = 0,
                progressNeeded = 100,
                isComplete = false,
                isClaimed = false,

                resourcesThatCanInvokeThisEvent = {
                    "d3MBA-cocaine"
                },
                rewards = {
                    [1] = {
                        name = "money",
                        label = "Money",
                        amount = 2000,
                        icon = "money.png" -- From inventory path
                    },
                }
            },
            [3] = {
                name = "Sell Joints",
                desc = "Sell 500 joints to receive cool rewards.",
                event = "sp-drugselling-encrypted:salesinitiate",
                progress = 0,
                progressNeeded = 100,
                isComplete = false,
                isClaimed = false,

                resourcesThatCanInvokeThisEvent = {
                    "sp-drugselling-encrypted"
                },
                rewards = {
                    [1] = {
                        name = "money",
                        label = "Money",
                        amount = 3000,
                        icon = "money.png" -- From inventory path
                    },
                }
            },
        }
    }
}

Last updated