Page cover

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"!

Copy

Config.Core = "esx"

Step 2 - SQL Section

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

Copy

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.

Copy

Config.Display = {
    command = "casemenu"
}

Step 4 - Adding Custom Tasks

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

Copy

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

Copy

Step 5 - Editing/Adding Cases

Example Case Config

Copy

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

Was this helpful?