⚙️Config Adjustment

Its important to adjust the script according to your server and your server's framework!

Step 1 - Framework/Core Section

Our script supports "qb" and "esx" frameworks. The example below is for "esx"!

Config.Core = "esx"

Step 2 - SQL Section

Select the sql script you use on your server. Supported are: "oxmysql", "mysql-async", "ghmattimysql".

Config.SQL = "oxmysql"

Step 3 - Display Settings

Here you can set how the players will use the script. If you don't want it to open with a command, you can write false in the command value.

Config.Display = {
    command = "casemenu"
}

Step 4 - Adding Custom Tasks

You need to add the following line to the Config.Tasks object and edit it.

{name = "Rob 100 SuperMarket", case = "RobSuperMarket", type="3", count=100, award=2500, description="Lorem ipsum dolor sit amet consectetur. Diam lectus senectus pellentesque aliquam. Congue vulputate mauris odio mattis non pulvinar mauris arcu. Tincidunt praesent ultricies cursus varius"},

Parameters and their meanings

  1. name: Name of the task the player sees

  2. case: Only you will see what is written here and you will use it when adding the number of tasks to the user.

  3. type: This indicates the type of the task. "1" means Purple, "2" means Blue, "3" means Red.

  4. count: How many times the player must perform this task

  5. award: The reward he will receive for serving up to count

  6. description: This is the description text that will appear in the Tasks section!

How to increase user's tasks value

// Only can Server-Side
exports["heat-case"]:addSuccessTask(source, "<case value on Config.Tasks>")

Step 5 - Editing/Adding Cases

Example Case Config

    ["Royal Case"] = {
        image = "img/Cases/Case1.png",
        imageback = "img/Cases/Case1Back.png",
        type = "VIP",
        price = 200,
        items = {
            {
                name = "bandage",
                label = "Bandage Kit",
                image = "img/CaseItems/bandage.png",
                chanceperc = 40,
                sellprice = 200,
                state = "exotic",
                type = "item"
            },
            {
                name = "weapon_pistol",
                label = "Classic Pistol (9mm)",
                image = "img/CaseItems/weapon_pistol.png",
                chanceperc = 20,
                sellprice = 200,
                state = "common",
                type = "weapon"
            },
            {
                name = "adder",
                label = "Adder (V10)",
                image = "img/CaseItems/adder.png",
                chanceperc = 150,
                sellprice = 2000,
                state = "rare",
                type = "vehicle"
            },
        }
    },

Values means

  • image & image back: There are 15 templates as Case1-2-3-4-5-6-....-15 & Case1Back-2-3-4-5-6-....-15!

  • type: Case type can be VIP, STANDARD.

  • price: Enter an integer value. If the case type is VIP it will give points, otherwise it will give bank money.

  • items: Here is a list of items that can be found in the vault. Chance rates etc. You can adjust them here.

Last updated