Custom clothing shops
Custom clothing shops allow you to control which clothes are available for sale at a specific store. For example, you can create a shop that only sells police uniforms, or one that only offers luxury
How to add a custom clothing shop
Go to the
tgiann-clothing/configs/clotheListdirectory.Copy the
globalfolder and paste it into the same directory.Rename the new folder to any name you like — this will be your custom shop.
The
globalfolder is provided as a template by us to help you get started.
Inside your new folder, you'll see two Lua files — one for male outfits and one for female outfits.
Open each file and locate the following line at the top:
local customShopName = "global"Replace "global" with the name of your new folder (shop name). This ensures your custom shop is registered correctly.
How to configure clothing items
Each file already contains many examples.
For instance, if you want to add a specific t-shirt to be sold in the shop, locate the tshirt_1 section and add entries in this format:
{ id = 42, price = 500 },id = 42is the clothing item number you can find by using the/skincommand and browsing the menu in-game.price = 500sets the price of that clothing item.
For more examples, feel free to explore the files in the tgiann-clothing/configs/clotheList/global folder
How to assign custom clothing shops to stores
You can assign your custom clothing config to a store by setting the clotheList property in the configStores.lua file.
For example:
clotheList = "global",Here, "global" should be replaced with the name of the custom clothing config folder you created.
This tells the store to use the clothing list and prices defined in that specific configuration.
Example
{
blip = true,
shopType = "clothing",
clotheList = "global", -- costum clothing stores name
blipCoords = vector2(1685.8996582031, 4830.1655273438),
fittingRoomPedCoords = vec4(1698.883545, 4817.762695, 42.052002, 5.669291),
playerOwnable = {
active = true, -- if true players can buy the shop
shopUniqueName = "clotheshop1", -- Must be unique name
earnPercent = 0.1, -- The value is multiplayer (0.1 = 10%) (the money spent by the player * earnPercent)
coords = vector3(1695.4460, 4822.9800, 42.0631), -- Control menu coords
price = 3000, -- Buy price
priceType = "coin", -- Custom price type
priceSymbol = "T Coin", -- Custom price symbol
noMoneyMsg = "You don't have enough money to buy this shop!", -- message when the player doesn't have enough money to buy the shop
rentMoneyPercent = 1,
rentPeriodDay = 5,
rentPayBeforeDay = 1,
},
zone = function()
return lib.zones.poly({
points = {
vector3(1685.8996582031, 4830.1655273438, 41),
vector3(1687.8397216797, 4815.4614257812, 41),
vector3(1699.8541259766, 4817.1440429688, 41),
vector3(1699.4880371094, 4832.0375976562, 41),
},
thickness = 4,
debug = enableZoneDebug
})
end
},Last updated