Clothing System
Flux Inventory includes a built-in clothing toggle system. When enabled, players can toggle individual clothing items on and off directly from the inventory UI.
Enable/Disable
Config.EnableClothing = trueClothing Slots
15 clothing slots are available, each defined in Config.ClothingSlots:
| Slot | Type | Description |
|---|---|---|
headoff | prop | Head accessory (off) |
headon | prop | Head accessory (on) |
glasses | prop | Glasses |
ear | prop | Earpiece / earring |
watchon | prop | Watch (on) |
watchoff | prop | Watch (off) |
necklace | component | Necklace / chain |
mask | component | Mask |
gloves | component | Gloves |
hair | component | Hair style |
shirt | component | Shirt / top |
bag | component | Backpack / bag |
pants | component | Pants / legs |
vest | component | Body armor / vest |
shoes | component | Shoes |
jacket | component | Jacket / outer layer |
Each slot has a type (either prop or component), a componentId, and animation data for the toggle action.
Clothing Defaults
Config.ClothingDefaults defines the default drawable/texture values for both male and female player models. When a clothing item is “removed”, the model reverts to these defaults.
Exports
| Export | Side | Description |
|---|---|---|
SaveClothingState | Client | Saves the current clothing state |
RestoreClothing | Client | Restores a previously saved clothing state |
ToggleClothingSlot | Client | Toggles a specific clothing slot on/off |
Last updated on