πŸ”₯All scripts on our website are 50% off!πŸ”₯
Logo

Configuration

Configure BIT-ClothingShop v.2 according to your server needs.

[!CAUTION] Don't touch this line

Config, Photos, Lang, Noti = {}, {}, {}, {}

Framework Setup

Choose your framework (ESX, QB-Core, or QBox) and configure the database:

-- Use "esx", "qb" or "qbox"
Config.Framework = "qb"
-- oxmysql, mysql-async or ghmattisql
Config.Mysql = "oxmysql"

General Settings

--Font for the alert texts
Config.alertTextFont = 4
--Command for administrators, to generate the images of the clothes
Config.updateClothesCommand = "updateclothes"
--Activate if you want to perform tests on image capture with small amounts of clothing
Config.testMode = true
--Number of images to be taken for each category in test mode
Config.testModeAmount = 5
--True to debug mode
Config.debugMode = false
-- True if you use QSInventory
Config.useQSInventory = false

Notifications

Configure your notification system:

function notifications(notitype, message, time)
    --Change this trigger for your notification system keeping the variables
    TriggerEvent("bit-notifications:open", notitype, message, time, notitype)
end

--Notifications types:
Noti.info = "info"
Noti.check = "success"
Noti.error = "error"

--Notification time:
Noti.time = 5000

Photo Configuration

Settings for the image generation process:

--Location where you want the images of the clothes to be made
Photos.Location = vector3(220.79, -992.66, -99.0)
--Ped heading for the images
Photos.Heading = 272.23
-- waiting time between image creation (if you leave it at 3000 it will take about 25 minutes every 500 items)
-- it is not recommended to lower the waiting time, it may cause image failures.
Photos.Sleep = 200
-- Image resize width in pixels (height will be calculated proportionally)
Photos.ResizeWidth = 184
-- Image format: "png" or "jpeg"
Photos.ImageFormat = "png"
-- Image quality (0.0 to 1.0, only applies to JPEG)
Photos.ImageQuality = 0.8

Blacklist

Exclude specific clothing items from the store:

--Blacklist of clothes that you do not want to be displayed in the clothing store
--enter the names of the images
Blacklist = {}

Camera Positions

Configure camera angles for different clothing categories:

Cameras = {
    ["male"] = {
        head = {distance = -0.6, height = 0.1}, --positive height
        torso = {distance = -0.1, height = 0.35}, --negative height
        legs = {distance = 0.2, height = 1.0}, --negative height
        shoes = {distance = -0.6, height = 1.45}, --negative height
        bag = {distance = -2.5, height = 0.25} --negative height
    },
    ["female"] = {
        head = {distance = -0.6, height = 0.2}, --positive height
        torso = {distance = -0.1, height = 0.35}, --negative height
        legs = {distance = 0.2, height = 1.0}, --negative height
        shoes = {distance = -0.45, height = 1.45}, --negative height
        bag = {distance = -2.5, height = 0.25} --negative height
    }
}

Language Strings

Customize the text displayed to players:

Lang.enter = "Press ~b~E~w~ to enter"
Lang.accessory = "Accessory"
Lang.badge = "Badge"
Lang.bag = "Bag"
Lang.kevlar = "Kevlar"
Lang.pants = "Pants"
Lang.mask = "Mask"
Lang.shoes = "Shoes"
Lang.torso = "Arms"
Lang.torso2 = "Jacket"
Lang.undershirt = "Undershirt"
Lang.hat = "Hat"
Lang.glasses = "Glasses"
Lang.earrings = "Earrings"
Lang.watch = "Watch"
Lang.bracelet = "Bracelet"
Lang.noMoney = "You don't have enough money"
Lang.imageloading = "Image loading is finished, remember to optimize them"
Lang.outfitNotSaved = "This outfit has not been saved"
Lang.outfitSaved = "The outfit has been saved successfully"
Lang.removeOutfit = "The outfit has been successfully deleted"

Pricing

Set prices for each clothing category:

Prices = {
    ["mask"] = 200,
    ["arms"] = 0,
    ["bag"] = 250,
    ["undershirt"] = 120,
    ["jacket"] = 250,
    ["accessory"] = 100,
    ["pants"] = 250,
    ["shoes"] = 250,
    ["badge"] = 100,
    ["hat"] = 100,
    ["glasses"] = 100,
    ["earrings"] = 100,
    ["watch"] = 100,
    ["bracelet"] = 100
}

Store Locations

The script includes 15 pre-configured clothing stores. Each store can be customized with:

  • Coordinates: Store location
  • Items: Available clothing categories
  • Blip: Map marker configuration
  • Marker: 3D marker configuration

Example store configuration:

Shops = {
    [1] = {
        coords = vector3(71.55, -1399.24, 29.38),
        items = {
            "mask",
            "arms",
            "bag",
            "jacket",
            "accessory",
            "pants",
            "shoes",
            "badge",
            "undershirt",
            "hat",
            "glasses",
            "earrings",
            "watch",
            "bracelet",
            "kevlar"
        },
        blip = {use = true, sprite = 73, color = 3, scale = 0.9, name = "Clothing Store"},
        marker = {use = true, type = 23, r = 4, g = 112, b = 158}
    }
}