Configuration
This section includes all configurable files for the selected script. Most settings are configured automatically, but each config.lua file contains a header comment explaining the purpose and usage of every configuration type. Be sure to read the header of each file carefully to fully understand how to customize and adapt the system for QBCORE, ESX, or standalone environments, ensuring seamless integration with your server.
qs-outfitbag/shared/config.lua
function debugPrint(message)
if Config and Config.Debug then
print("[Quasar Outfit Bag]: " .. message)
end
end
function checkDependencies(resourceTable)
for resourceName, frameworkId in pairs(resourceTable) do
local state = GetResourceState(resourceName)
if state:find('started') ~= nil then
debugPrint("Found matching dependency: " .. resourceName .. " with ID: " .. frameworkId)
return frameworkId
end
end
debugPrint("No matching dependencies found")
return false
end
local frameworks = {
['es_extended'] = 'esx',
['qb-core'] = 'qbcore',
['qbx_core'] = 'qbox'
}
local targets = {
['ox_target'] = 'ox_target',
['qb-target'] = 'qb-target',
['qs-textui'] = 'qs-textui'
}
Config = {}
Config.Debug = false
Config.Framework = checkDependencies(frameworks) or 'standalone'
Config.Target = checkDependencies(targets) or 'standalone'
Config.ItemName = 'outfitbag'
Config.BagModel = 'reh_prop_reh_bag_outfit_01a'
Locales = Locales or {}
--[[
Choose your preferred language!
In this section, you can select the main language for your asset. We have a wide
selection of default languages available, located in the locales/* folder.
If your language is not listed, don't worry! You can easily create a new one
by adding a new file in the locales folder and customizing it to your needs.
🌐 Default languages available:
'ar' -- Arabic
'bg' -- Bulgarian
'ca' -- Catalan
'cs' -- Czech
'da' -- Danish
'de' -- German
'el' -- Greek
'en' -- English
'es' -- Spanish
'fa' -- Persian
'fr' -- French
'hi' -- Hindi
'hu' -- Hungarian
'it' -- Italian
'ja' -- Japanese
'ko' -- Korean
'nl' -- Dutch
'no' -- Norwegian
'pl' -- Polish
'pt' -- Portuguese
'ro' -- Romanian
'ru' -- Russian
'sl' -- Slovenian
'sv' -- Swedish
'th' -- Thai
'tr' -- Turkish
'zh-CN' -- Chinese (Simplified)
'zh-TW' -- Chinese (Traditional)
After selecting your preferred language, be sure to save your changes and test
the asset to ensure everything works as expected!
]]
Config.Language = 'en'
Config.DefaultBags = {
{
pos = vector3(441.2, -981.9, 29.7), -- Example: Mission Row PD (bag position)
pedpos = {x = 441.1165, y = -981.3917, z = 29.6896, heading = 180.9981}, -- Where player should stand/face when using bag
outfits = {
{
name = "Police Uniform (Full Example)",
data = {
['arms'] = {item = 30, texture = 0, palette = 0},
['t-shirt'] = {item = 15, texture = 0, palette = 0},
['torso2'] = {item = 55, texture = 0, palette = 0},
['pants'] = {item = 35, texture = 0, palette = 0},
['shoes'] = {item = 25, texture = 0, palette = 0},
['mask'] = {item = 0, texture = 0, palette = 0},
['bag'] = {item = 0, texture = 0, palette = 0},
['accessory'] = {item = 0, texture = 0, palette = 0},
['vest'] = {item = 0, texture = 0, palette = 0},
['decals'] = {item = 0, texture = 0, palette = 0},
['face'] = {item = 0, texture = 0, palette = 0},
['hair'] = {item = 0, texture = 0, palette = 0},
['hat'] = {item = 46, texture = 0},
['glass'] = {item = 5, texture = 0},
['ear'] = {item = 2, texture = 0},
['watch'] = {item = 1, texture = 0},
['bracelet'] = {item = 1, texture = 0},
['chain'] = {item = 1, texture = 0}
}
}
},
jobs = { "police" },
public = false
}
}