Config file

--[[ 
    - this script needs tgiann-core script to work, you can download the script from your keymaster account
      Start tgiann-core script after es_extented/qb-core script and before tgiann-* scripts
      Adjust the tgiann-core config file according to the framework you are using
]]

tgiCoreExports = exports["tgiann-core"]
config = tgiCoreExports:getConfig()
config.openCommand = {
  enable = true,
  command = "shop"
}
config.devCommand = false
config.testDrive = {
  time = 50,
  bucket = {min = 10, max = 60},
  coord = vector4(-17.01, -1105.26, 26.67, 163.72),
  closest = {
    enable = true,
    radius = 50
  }
}
config.itemIMGLocation = "inventory_images/images"--"qb-inventory/html/images" 
config.itemImgExtension = ".webp" --png

config.numberFormat = "en-DE"
config.showBuyCoinPage = true
config.showOnlyMoney = false
config.showOnlyCoin = false
config.deleteSpawnedVehicle = true
config.lang = "en"

if config.framework == "qb" then
  config.vehicleTableName = "player_vehicles"
  config.defaultJob = {
    playerTable = "players",
    name = "unemployed",
    sql = {label = "Civilian", isboss = false, name = "unemployed", payment = 10, onduty = true, type= "none", grade={ name= "Freelancer", level = 1 }}
  }
elseif config.framework == "esx" then
  config.vehicleTableName = "player_vehicles"
  config.defaultJob = {
    playerTable = "users",
    job = {
      collumn = "job",
      value = "unemployed",
    }
    job_grade = {
      collumn = "job_grade",
      value = 0,
    }
  }
end

config.shopMenu = {
  {
    type = "car", -- This name must definitely be uniq 
    icon = "car", -- Icon folder name (ui/assets/icons)
    label = "Cars", -- Label
  },
  {
    type = "job", -- This name must definitely be uniq 
    icon = "job", -- Icon folder name (ui/assets/icons)
    label = "Jobs", -- Label
  },
  {
    type = "item", -- This name must definitely be uniq 
    icon = "item", -- Icon folder name (ui/assets/icons)
    label = "Items", -- Label
  },
}

--[[ 
  Example For Cars
  {
    uniqName = "car1", -- This name must definitely be uniq 
    img = "prototipo.webp", -- Image location (ui/assets/img)
    desc = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s", -- Car description (not required)
    type = "car", -- If you want to sell a vehicle, this should be a car
    model = "prototipo", -- Vehicle spawn name
    testDrive = { -- Test drive settings
      enable = true, -- Activate test drive for vehicle
      price = 500, -- Test drive price
    },
    stock = { -- Stock settings 
      enable = true, -- Activate stock for vehicle
      amount = 5, -- stock amount of the vehicle
    },
    daily = { -- Daily Settings
      enable = true, -- Sell vehicle daily
      day = 30, -- How many days after you get the car to delete it?
    },
    priceType = "money", -- purchase type ("money" or "coin")
    price = 10, -- purchase price
    tags = {"fastest", "ucuz"}, -- You can write any tags you want
  },

  Example For Jobs
  {
    uniqName = "job1", -- This name must definitely be uniq 
    img = "prototipo.webp", -- Image location (ui/assets/img)
    desc = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s", -- Job description (not required)
    type = "job", -- If you want to sell a job, this should be a job
    jobName = "mechanic_hayes", -- Job name
    bossGrade = 1, -- Boss grade number
    label = "Mechanic Hayes", -- the name that will appear in the menu
    daily = { -- Daily Settings
      enable = true,  -- Sell job daily
      day = 30,
      reBuy = { -- allows you to renew the term by purchasing again before the end of the term (Only works jobs)
        enable = true, -- is Enable?
        day = 3, -- How many days before the deadline can you renew
      }
    },
    priceType = "money", -- purchase type ("money" or "coin")
    price = 10, -- purchase price
    tags = {"fastest", "ucuz"}, -- You can write any tags you want
  },

  Example For Items
  {
    uniqName = "item1", -- This name must definitely be uniq 
    desc = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s", -- Job description (not required)
    type = "item", -- If you want to sell a item, this should be a item
    itemName = "chair4", -- Item name
    amount = 5, -- Amount :D
    stock = { -- Stock settings 
      enable = true, -- Activate stock for item
      amount = 5, -- stock amount of the item
    },
    priceType = "money", -- purchase type ("money" or "coin")
    price = 10, -- purchase price
    tags = {"fastest", "ucuz"}, -- You can write any tags you want
  },


]]

config.shopItems = {
  car = { -- config.shopMenu[?].type
    {
      uniqName = "22b",
      img = "cars/22b.webp",
      type = "car",
      model = "22b",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 2000,
    },
    {
      uniqName = "22m5",
      img = "cars/22m5.webp",
      desc = "Lorem Ipsum is simply dummy ",
      type = "car",
      model = "22m5",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 2000,
    },
    {
      uniqName = "66fastback",
      img = "cars/66fastback.webp",
      type = "car",
      model = "66fastback",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 1000,
    },
    {
      uniqName = "69charger",
      img = "cars/69charger.webp",
      type = "car",
      model = "69charger",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 3000,
    },
    {
      uniqName = "488misha",
      img = "cars/488misha.webp",
      type = "car",
      model = "488misha",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 200,
    },
    {
      uniqName = "500gtrlam",
      img = "cars/500gtrlam.webp",
      desc = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s",
      type = "car",
      model = "500gtrlam",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 5000,
    },
    {
      uniqName = "675ltsp",
      img = "cars/675ltsp.webp",
      type = "car",
      model = "675ltsp",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 300,
    },
    {
      uniqName = "a6",
      img = "cars/a6.webp",
      type = "car",
      model = "a6",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 400,
    },
    {
      uniqName = "a45amg",
      img = "cars/a45amg.webp",
      type = "car",
      model = "a45amg",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 250,
    },
    {
      uniqName = "a80",
      img = "cars/a80.webp",
      type = "car",
      model = "a80",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 240,
    },
    {
      uniqName = "acs8",
      img = "cars/acs8.webp",
      type = "car",
      model = "acs8",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 1000,
    },
    {
      uniqName = "ap2",
      img = "cars/ap2.webp",
      type = "car",
      model = "ap2",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 3000,
    },
    {
      uniqName = "audirs6tk",
      img = "cars/audirs6tk.webp",
      type = "car",
      model = "audirs6tk",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 6000,
    },
    {
      uniqName = "bdragon",
      img = "cars/bdragon.webp",
      type = "car",
      model = "bdragon",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 1000,
    },
    {
      uniqName = "bluecunt",
      img = "cars/bluecunt.webp",
      type = "car",
      model = "bluecunt",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 8000,
    },
    {
      uniqName = "bt62r",
      img = "cars/bt62r.webp",
      type = "car",
      model = "bt62r",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 400,
    },
    {
      uniqName = "c7",
      img = "cars/c7.webp",
      type = "car",
      model = "c7",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 200,
    },
    {
      uniqName = "cliors",
      img = "cars/cliors.webp",
      type = "car",
      model = "cliors",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 2000,
    },
    {
      uniqName = "contss18",
      img = "cars/contss18.webp",
      type = "car",
      model = "contss18",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 2000,
    },
    {
      uniqName = "cp9a",
      img = "cars/cp9a.webp",
      type = "car",
      model = "cp9a",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 2000,
    },
    {
      uniqName = "db11",
      img = "cars/db11.webp",
      type = "car",
      model = "db11",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 2000,
    },
    {
      uniqName = "dc5",
      img = "cars/dc5.webp",
      type = "car",
      model = "dc5",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 2000,
    },
    {
      uniqName = "delsoleg",
      img = "cars/delsoleg.webp",
      type = "car",
      model = "delsoleg",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 2000,
    },
    {
      uniqName = "deluxo6str",
      img = "cars/deluxo6str.webp",
      type = "car",
      model = "deluxo6str",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 2000,
    },

    {
      uniqName = "demon",
      img = "cars/demon.webp",
      type = "car",
      model = "demon",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 2000,
    },
    {
      uniqName = "draftgpr",
      img = "cars/draftgpr.webp",
      type = "car",
      model = "draftgpr",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 2000,
    },
    {
      uniqName = "e36prb",
      img = "cars/e36prb.webp",
      type = "car",
      model = "e36prb",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 2000,
    },
    {
      uniqName = "ellie6str",
      img = "cars/ellie6str.webp",
      type = "car",
      model = "ellie6str",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 2000,
    },
    {
      uniqName = "evo9",
      img = "cars/evo9.webp",
      type = "car",
      model = "evo9",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 2000,
    },
    {
      uniqName = "exor",
      img = "cars/exor.webp",
      type = "car",
      model = "exor",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 2000,
    },
    {
      uniqName = "fk8",
      img = "cars/fk8.webp",
      type = "car",
      model = "fk8",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 2000,
    },
    {
      uniqName = "fnf4r34",
      img = "cars/fnf4r34.webp",
      type = "car",
      model = "fnf4r34",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable = true,
        amount = 2,
      },
      daily = {
        enable = false,
        day = 30,
      },
      priceType = "coin",
      price = 2000,
    },
    {
      uniqName = "fnfrx7",
      img = "cars/fnfrx7.webp",
      type = "car",
      model = "fnfrx7",
      testDrive = {
        enable = true,
        price = 500,
      },
      stock = {
        enable =