KAIRO OutfitBag
Wardrobe & skin
config.lua
Config.WardrobeSync = true
Config.Wardrobe = 'auto'WardrobeSync = true: the bag shows and edits the player’s real wardrobe, both ways. What you save or delete in the bag ends up in the closet; what you save in the closet or clothing shop shows up in the bag within 3 seconds. If no supported closet is found, it uses its own list.WardrobeSync = false: the bag has its own list (tablekairo_outfitbag_outfits), separate from the closet. Works on any server, even pure standalone.
| System | Where outfits are read and written |
|---|---|
| illenium-appearance, CodeM Supreme Clothing, Quasar Appearance | table player_outfits + illenium events |
| fivem-appearance | table outfits |
| qb-clothing | table player_outfits (qb format) |
| esx_property / esx_datastore | datastore property → dressing |
| rcore_clothing, codem-appearance | no public API: the bag’s list, or Custom.Wardrobe |
| others | Config.Wardrobe = 'custom' and Custom.Wardrobe |
Switching from
false to true, outfits saved earlier in the bag’s list are not moved into the closet: they stay in the kairo_outfitbag_outfits table.Skin saving
After changing, the skin is saved in the clothing system so it survives a relog. Config.SkinSave = 'auto' picks among illenium-appearance, codem-clothing, qs-appearance, rcore_clothing, fivem-appearance, qb-clothing and skinchanger (esx_skin, codem-appearance).
With a different clothing system write Custom.SaveSkin in editable/client.lua: see Hooks & customisation.
Per-system notes
- illenium-appearance / CodeM Supreme / Quasar: saves and deletes through the
illenium-appearance:server:saveOutfit/deleteOutfitevents, so their cache stays in sync too. Reads fromConfig.IlleniumOutfitsTable. - rcore_clothing / codem-appearance: they publish no outfit functions. The skin is saved in their system, bag outfits stay in the standalone table. To link them to their closet write
Custom.Wardrobe. - fivem-appearance on ESX: the skin is saved with
esx_skin:save. Some forks use a different event. - Recent esx_skin: it rejects client saves without an edit session, so the bag saves server side with the
esx_skin:SaveOutfitexport (esx_skin must be running). - qb-clothing: applies through
qb-clothing:client:loadOutfit, like qb-houses wardrobes.
