Clothing System

📖 Police Clothing System — General Logic
The Police Clothing System is designed to let officers quickly switch between department-assigned uniforms and their personal saved outfits. It uses a clean UI with two main tabs:
Police Uniform → Shows predefined uniforms (short sleeve, long sleeve, trooper variations, SWAT, etc.). These are managed in the config.
My Clothes → Allows officers to save and re-use their own clothing combinations.
When an officer selects a uniform, the system applies the configured outfit instantly. Supervisors can also assign new uniforms that appear for their department.
🔹 How the Config Works
The Cloths
table defines all available uniforms. It’s separated into male and female categories, each with numbered presets.
Each preset includes:
outfitLabel
→ The name of the uniform shown in the menu.outfitData
→ The individual clothing parts (pants, arms, t-shirt, vest, torso, shoes, hat, mask, etc.).Each clothing part has an item (drawable ID) and texture (variation).
🔹 Example Config Snippets
Male – Short Sleeve:
[1] = {
outfitLabel = 'Short Sleeve',
outfitData = {
['pants'] = { item = 24, texture = 0 },
['arms'] = { item = 19, texture = 0 },
['t-shirt'] = { item = 58, texture = 0 },
['torso2'] = { item = 55, texture = 0 },
['shoes'] = { item = 51, texture = 0 },
['hat'] = { item = -1, texture = -1 },
}
}
Male – SWAT:
[5] = {
outfitLabel = 'SWAT',
outfitData = {
['pants'] = { item = 130, texture = 1 },
['arms'] = { item = 172, texture = 0 },
['vest'] = { item = 15, texture = 2 },
['torso2'] = { item = 336, texture = 3 },
['mask'] = { item = 52, texture = 0 },
['hat'] = { item = 150, texture = 0 },
}
}
Female – Trooper Black:
[4] = {
outfitLabel = 'Trooper Black',
outfitData = {
['pants'] = { item = 133, texture = 0 },
['arms'] = { item = 31, texture = 0 },
['torso2'] = { item = 327, texture = 8 },
['shoes'] = { item = 52, texture = 0 },
['hat'] = { item = 0, texture = 0 },
}
}
🔹 Summary
Police Uniforms: Pre-configured outfits by rank/unit (e.g., Trooper, SWAT).
My Clothes: Personal saved outfits.
Config-Driven: Each outfit is fully customizable in
Cloths
config with items and textures.Rank Control: You can limit certain uniforms (like SWAT) to specific grades.
Last updated