Configuration

Main Configuration

Config = {
    Debug = false, -- debug mode for more information
    VersionCheck = true, -- should this script check for a new version?
    WebHook = 'https://ptb.discord.com/api/webhooks/', -- discord webhook
    LeoJobs = {'police', 'cop', 'marshal'}, -- jobs that cant sell when illegal = true

    DrawDistance = 30.0, -- distance marker should be drawn
    DrawDistanceNPC = 100.0, -- distance ped should be drawn
    InteractDistance = 1.8, -- distance you can access the markers

    RefreshTime = 90 * 60 * 1000, -- refresh for prices (example given: 30 minutes)
    RemainingTime = 0, -- do not change this
    Chance = 20, -- change of double lose or gain
}
circle-exclamation

Translation Configuration

circle-info

You can change this into any language you'd like.

Sound Configuration

triangle-exclamation

We are going to tear down the whole "Points" Config into various blocks. Starting with the first block:

circle-info

The variable "name": is your unique name, it will be used as a "database" for intern operations. In this example its "food_market".

The variable "css": is used to change the header of the menu.

The variable "illegal": can either be true/false. If it's set to true the Jobs from the Table "LeoJobs" that you have set in the Main Configuration are not able to sell items at the specific market.

In the next block we are taking a look at the items:

circle-info

We got a list for every item that should be accepted by the market and be shown in the checkmenu. The variable "item": Is your item name set in your inventory. That name is also used for the image in the UI.

The variable "label": This is the text that will be shown in the UI.

The variables "minPrice" & "maxPrice": You can set a minimum price and a maximum price, every set time, the prices will change to a value between those.

In the next block we are configurating the checker:

circle-info

We can enable or disable the price checker in here. The variable "whitelistJob": You can set a job that is required to access that price checker. If you do not want to set a job put it as "false".

Next we are configurationg the seller:

circle-info

We can enable or disable the seller in here. The variable "whitelistJob": You can set a job that is required to access that price checker. If you do not want to set a job put it as "false".

And thats it! You now got a fully functional market ecosystem. You can add as many of them as you want.

IMPORTANT LIMITATION

triangle-exclamation

Last updated