Configuration
Don't touch this line
Config, Photos, Lang, Noti = {}, {}, {}, {}
CONFIGURATION FILE
Config, Photos, Lang, Noti = {}, {}, {}, {}
-- $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\
--$$ __$$\ $$ __$$\ $$$\ $$ |$$ _____|\_$$ _|$$ __$$\ $$ | $$ |$$ __$$\ $$ __$$\\__$$ __|\_$$ _|$$ __$$\ $$$\ $$ |
--$$ / \__|$$ / $$ |$$$$\ $$ |$$ | $$ | $$ / \__|$$ | $$ |$$ | $$ |$$ / $$ | $$ | $$ | $$ / $$ |$$$$\ $$ |
--$$ | $$ | $$ |$$ $$\$$ |$$$$$\ $$ | $$ |$$$$\ $$ | $$ |$$$$$$$ |$$$$$$$$ | $$ | $$ | $$ | $$ |$$ $$\$$ |
--$$ | $$ | $$ |$$ \$$$$ |$$ __| $$ | $$ |\_$$ |$$ | $$ |$$ __$$< $$ __$$ | $$ | $$ | $$ | $$ |$$ \$$$$ |
--$$ | $$\ $$ | $$ |$$ |\$$$ |$$ | $$ | $$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ | $$ | $$ | $$ | $$ |$$ |\$$$ |
--\$$$$$$ | $$$$$$ |$$ | \$$ |$$ | $$$$$$\ \$$$$$$ |\$$$$$$ |$$ | $$ |$$ | $$ | $$ | $$$$$$\ $$$$$$ |$$ | \$$ |
--\______/ \______/ \__| \__|\__| \______| \______/ \______/ \__| \__|\__| \__| \__| \______| \______/ \__| \__|
--Use "esx" or "qb"
Config.Framework = "qb"
--If you are using one of the most recent versions of ESX, set the script name. Default = "es_extended"
Config.ESXExport = "es_extended"
--Default ESX: "esx:getSharedObject" | Default QB: "qb-core"
Config.Core = "qb-core"
-- oxmysql, mysql-async or ghmattisql
Config.Mysql = "oxmysql"
--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 = 20
--$$\ $$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$\
--$$$\ $$ |$$ __$$\\__$$ __|\_$$ _|$$ _____|\_$$ _|$$ __$$\ $$ __$$\\__$$ __|\_$$ _|$$ __$$\ $$$\ $$ |$$ __$$\
--$$$$\ $$ |$$ / $$ | $$ | $$ | $$ | $$ | $$ / \__|$$ / $$ | $$ | $$ | $$ / $$ |$$$$\ $$ |$$ / \__|
--$$ $$\$$ |$$ | $$ | $$ | $$ | $$$$$\ $$ | $$ | $$$$$$$$ | $$ | $$ | $$ | $$ |$$ $$\$$ |\$$$$$$\
--$$ \$$$$ |$$ | $$ | $$ | $$ | $$ __| $$ | $$ | $$ __$$ | $$ | $$ | $$ | $$ |$$ \$$$$ | \____$$\
--$$ |\$$$ |$$ | $$ | $$ | $$ | $$ | $$ | $$ | $$\ $$ | $$ | $$ | $$ | $$ | $$ |$$ |\$$$ |$$\ $$ |
--$$ | \$$ | $$$$$$ | $$ | $$$$$$\ $$ | $$$$$$\ \$$$$$$ |$$ | $$ | $$ | $$$$$$\ $$$$$$ |$$ | \$$ |\$$$$$$ |
--\__| \__| \______/ \__| \______|\__| \______| \______/ \__| \__| \__| \______| \______/ \__| \__| \______/
function notifications(notitype, message, time)
--Change this trigger for your notification system keeping the variables
TriggerEvent('codem-notification', message, time, notitype)
end
--Notifications types:
Noti.info = 'info'
Noti.check = 'check'
Noti.error = 'error'
--Notification time:
Noti.time = 5000
--$$$$$$$\ $$\ $$\ $$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\
--$$ __$$\ $$ | $$ |$$ __$$\\__$$ __|$$ __$$\ $$ __$$\
--$$ | $$ |$$ | $$ |$$ / $$ | $$ | $$ / $$ |$$ / \__|
--$$$$$$$ |$$$$$$$$ |$$ | $$ | $$ | $$ | $$ |\$$$$$$\
--$$ ____/ $$ __$$ |$$ | $$ | $$ | $$ | $$ | \____$$\
--$$ | $$ | $$ |$$ | $$ | $$ | $$ | $$ |$$\ $$ |
--$$ | $$ | $$ | $$$$$$ | $$ | $$$$$$ |\$$$$$$ |
--\__| \__| \__| \______/ \__| \______/ \______/
--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
--$$$$$$$\ $$\ $$$$$$\ $$$$$$\ $$\ $$\ $$\ $$$$$$\ $$$$$$\ $$$$$$$$\
--$$ __$$\ $$ | $$ __$$\ $$ __$$\ $$ | $$ |$$ | \_$$ _|$$ __$$\\__$$ __|
--$$ | $$ |$$ | $$ / $$ |$$ / \__|$$ |$$ / $$ | $$ | $$ / \__| $$ |
--$$$$$$$\ |$$ | $$$$$$$$ |$$ | $$$$$ / $$ | $$ | \$$$$$$\ $$ |
--$$ __$$\ $$ | $$ __$$ |$$ | $$ $$< $$ | $$ | \____$$\ $$ |
--$$ | $$ |$$ | $$ | $$ |$$ | $$\ $$ |\$$\ $$ | $$ | $$\ $$ | $$ |
--$$$$$$$ |$$$$$$$$\ $$ | $$ |\$$$$$$ |$$ | \$$\ $$$$$$$$\ $$$$$$\ \$$$$$$ | $$ |
--\_______/ \________|\__| \__| \______/ \__| \__|\________|\______| \______/ \__|
--Blacklist of clothes that you do not want to be displayed in the clothing store
--enter the names of the images
Blacklist = {
--example:
--"m-1-208-22",
--"f-1-159-1"
}
-- $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$$\ $$$$$$$\ $$$$$$\ $$$$$$\
--$$ __$$\ $$ __$$\ $$$\ $$$ |$$ _____|$$ __$$\ $$ __$$\ $$ __$$\
--$$ / \__|$$ / $$ |$$$$\ $$$$ |$$ | $$ | $$ |$$ / $$ |$$ / \__|
--$$ | $$$$$$$$ |$$\$$\$$ $$ |$$$$$\ $$$$$$$ |$$$$$$$$ |\$$$$$$\
--$$ | $$ __$$ |$$ \$$$ $$ |$$ __| $$ __$$< $$ __$$ | \____$$\
--$$ | $$\ $$ | $$ |$$ |\$ /$$ |$$ | $$ | $$ |$$ | $$ |$$\ $$ |
--\$$$$$$ |$$ | $$ |$$ | \_/ $$ |$$$$$$$$\ $$ | $$ |$$ | $$ |\$$$$$$ |
--\______/ \__| \__|\__| \__|\________|\__| \__|\__| \__| \______/
--Camera positions when taking photos and accessing the clothing store
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
}
}
--$$\ $$$$$$\ $$\ $$\ $$$$$$\ $$\ $$\ $$$$$$\ $$$$$$\ $$$$$$$$\
--$$ | $$ __$$\ $$$\ $$ |$$ __$$\ $$ | $$ |$$ __$$\ $$ __$$\ $$ _____|
--$$ | $$ / $$ |$$$$\ $$ |$$ / \__|$$ | $$ |$$ / $$ |$$ / \__|$$ |
--$$ | $$$$$$$$ |$$ $$\$$ |$$ |$$$$\ $$ | $$ |$$$$$$$$ |$$ |$$$$\ $$$$$\
--$$ | $$ __$$ |$$ \$$$$ |$$ |\_$$ |$$ | $$ |$$ __$$ |$$ |\_$$ |$$ __|
--$$ | $$ | $$ |$$ |\$$$ |$$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ |$$ |
--$$$$$$$$\ $$ | $$ |$$ | \$$ |\$$$$$$ |\$$$$$$ |$$ | $$ |\$$$$$$ |$$$$$$$$\
--\________|\__| \__|\__| \__| \______/ \______/ \__| \__| \______/ \________|
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"
--$$$$$$$\ $$$$$$$\ $$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$\
--$$ __$$\ $$ __$$\ \_$$ _|$$ __$$\ $$ _____|$$ __$$\
--$$ | $$ |$$ | $$ | $$ | $$ / \__|$$ | $$ / \__|
--$$$$$$$ |$$$$$$$ | $$ | $$ | $$$$$\ \$$$$$$\
--$$ ____/ $$ __$$< $$ | $$ | $$ __| \____$$\
--$$ | $$ | $$ | $$ | $$ | $$\ $$ | $$\ $$ |
--$$ | $$ | $$ |$$$$$$\ \$$$$$$ |$$$$$$$$\ \$$$$$$ |
--\__| \__| \__|\______| \______/ \________| \______/
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,
}
-- $$$$$$\ $$\ $$\ $$$$$$\ $$$$$$$\ $$$$$$\
--$$ __$$\ $$ | $$ |$$ __$$\ $$ __$$\ $$ __$$\
--$$ / \__|$$ | $$ |$$ / $$ |$$ | $$ |$$ / \__|
--\$$$$$$\ $$$$$$$$ |$$ | $$ |$$$$$$$ |\$$$$$$\
--\____$$\ $$ __$$ |$$ | $$ |$$ ____/ \____$$\
--$$\ $$ |$$ | $$ |$$ | $$ |$$ | $$\ $$ |
--\$$$$$$ |$$ | $$ | $$$$$$ |$$ | \$$$$$$ |
--\______/ \__| \__| \______/ \__| \______/
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"},
blip = {use = true, sprite = 73, color = 3, scale = 0.9, name = "Clothing Store"},
marker = {use = true, type = 23, r = 4, g = 112, b = 158}
},
[2] = {
coords = vector3(1696.96, 4829.54, 42.06),
items = {"mask", "arms", "bag", "jacket", "accessory", "pants", "shoes", "badge", "undershirt", "hat", "glasses", "earrings", "watch", "bracelet"},
blip = {use = true, sprite = 73, color = 3, scale = 0.9, name = "Clothing Store"},
marker = {use = true, type = 23, r = 4, g = 112, b = 158}
},
[3] = {
coords = vector3(-715.71, -147.61, 37.42),
items = {"mask", "arms", "bag", "jacket", "accessory", "pants", "shoes", "badge", "undershirt", "hat", "glasses", "earrings", "watch", "bracelet"},
blip = {use = true, sprite = 73, color = 3, scale = 0.9, name = "Clothing Store"},
marker = {use = true, type = 23, r = 4, g = 112, b = 158}
},
[4] = {
coords = vector3(-1192.52, -771.84, 17.32),
items = {"mask", "arms", "bag", "jacket", "accessory", "pants", "shoes", "badge", "undershirt", "hat", "glasses", "earrings", "watch", "bracelet"},
blip = {use = true, sprite = 73, color = 3, scale = 0.9, name = "Clothing Store"},
marker = {use = true, type = 23, r = 4, g = 112, b = 158}
},
[5] = {
coords = vector3(428.64, -800.02, 29.49),
items = {"mask", "arms", "bag", "jacket", "accessory", "pants", "shoes", "badge", "undershirt", "hat", "glasses", "earrings", "watch", "bracelet"},
blip = {use = true, sprite = 73, color = 3, scale = 0.9, name = "Clothing Store"},
marker = {use = true, type = 23, r = 4, g = 112, b = 158}
},
[6] = {
coords = vector3(-163.96, -311.28, 39.73),
items = {"mask", "arms", "bag", "jacket", "accessory", "pants", "shoes", "badge", "undershirt", "hat", "glasses", "earrings", "watch", "bracelet"},
blip = {use = true, sprite = 73, color = 3, scale = 0.9, name = "Clothing Store"},
marker = {use = true, type = 23, r = 4, g = 112, b = 158}
},
[7] = {
coords = vector3(-829.48, -1073.77, 11.33),
items = {"mask", "arms", "bag", "jacket", "accessory", "pants", "shoes", "badge", "undershirt", "hat", "glasses", "earrings", "watch", "bracelet"},
blip = {use = true, sprite = 73, color = 3, scale = 0.9, name = "Clothing Store"},
marker = {use = true, type = 23, r = 4, g = 112, b = 158}
},
[8] = {
coords = vector3(-1447.06, -229.84, 49.81),
items = {"mask", "arms", "bag", "jacket", "accessory", "pants", "shoes", "badge", "undershirt", "hat", "glasses", "earrings", "watch", "bracelet"},
blip = {use = true, sprite = 73, color = 3, scale = 0.9, name = "Clothing Store"},
marker = {use = true, type = 23, r = 4, g = 112, b = 158}
},
[9] = {
coords = vector3(11.21, 6514.31, 31.88),
items = {"mask", "arms", "bag", "jacket", "accessory", "pants", "shoes", "badge", "undershirt", "hat", "glasses", "earrings", "watch", "bracelet"},
blip = {use = true, sprite = 73, color = 3, scale = 0.9, name = "Clothing Store"},
marker = {use = true, type = 23, r = 4, g = 112, b = 158}
},
[10] = {
coords = vector3(617.89, 2761.61, 42.09),
items = {"mask", "arms", "bag", "jacket", "accessory", "pants", "shoes", "badge", "undershirt", "hat", "glasses", "earrings", "watch", "bracelet"},
blip = {use = true, sprite = 73, color = 3, scale = 0.9, name = "Clothing Store"},
marker = {use = true, type = 23, r = 4, g = 112, b = 158}
},
[11] = {
coords = vector3(1190.73, 2713.91, 38.22),
items = {"mask", "arms", "bag", "jacket", "accessory", "pants", "shoes", "badge", "undershirt", "hat", "glasses", "earrings", "watch", "bracelet"},
blip = {use = true, sprite = 73, color = 3, scale = 0.9, name = "Clothing Store"},
marker = {use = true, type = 23, r = 4, g = 112, b = 158}
},
[12] = {
coords = vector3(-3173.22, 1045.77, 20.86),
items = {"mask", "arms", "bag", "jacket", "accessory", "pants", "shoes", "badge", "undershirt", "hat", "glasses", "earrings", "watch", "bracelet"},
blip = {use = true, sprite = 73, color = 3, scale = 0.9, name = "Clothing Store"},
marker = {use = true, type = 23, r = 4, g = 112, b = 158}
},
[13] = {
coords = vector3(-1108.06, 2709.18, 19.11),
items = {"mask", "arms", "bag", "jacket", "accessory", "pants", "shoes", "badge", "undershirt", "hat", "glasses", "earrings", "watch", "bracelet"},
blip = {use = true, sprite = 73, color = 3, scale = 0.9, name = "Clothing Store"},
marker = {use = true, type = 23, r = 4, g = 112, b = 158}
},
[14] = {
coords = vector3(-1207.72, -1456.87, 4.38),
items = {"arms", "undershirt", "jacket"},
blip = {use = true, sprite = 73, color = 3, scale = 0.9, name = "Clothing Store"},
marker = {use = true, type = 23, r = 4, g = 112, b = 158}
},
[15] = {
coords = vector3(123.13, -220.88, 54.56),
items = {"mask", "arms", "bag", "jacket", "accessory", "pants", "shoes", "badge", "undershirt", "hat", "glasses", "earrings", "watch", "bracelet"},
blip = {use = true, sprite = 73, color = 3, scale = 0.9, name = "Clothing Store"},
marker = {use = true, type = 23, r = 4, g = 112, b = 158}
}
}
Last updated