Documentation

KAIRO OutfitBag

Startup order & detection

With Config.Framework, Config.Inventory, Config.Wardrobe, Config.SkinSave and Config.Target set to 'auto', the bag checks which resources are running and picks the right integration.

Many servers start resources by folder (ensure [standalone], ensure [esx_addons]…), so the bag may start before the wardrobe or the inventory. That is why detection works like this:

WhatWhen it is pickedIf the resource starts after the bag
WardrobeOn first usePicked again automatically
Skin savingOn first outfit changePicked again automatically
InventoryOn startPicked again and the item is registered there too
FrameworkOn startDoes not adapt: the framework must start first
TargetOn startStart the target first, or set it by hand

What to check in the console

About one second after start the server prints:

console
[kairo_outfitbag] framework: esx | inventory: ox_inventory | wardrobe: illenium-appearance | sync: true
  • framework: standalone but you use ESX/QBCore/Qbox: the framework starts after the bag. Move ensure es_extended / qb-core / qbx_core higher, or set Config.Framework by hand.
  • wardrobe: standalone with sync: true but you have a closet: your clothing system is not supported or not running. Set Config.Wardrobe by hand.
  • Wrong inventory:: set Config.Inventory by hand.

Setting it by hand

If you already know your server, set the values instead of 'auto': they are used as they are, with no detection.

config.lua
Config.Framework = 'esx'
Config.Inventory = 'ox_inventory'
Config.Wardrobe  = 'esx_property'
Config.SkinSave  = 'skinchanger'

After a resource restart

restart kairo_outfitbag works, but anyone with the bag open is closed out and placed bags are removed. By default the item of those bags is lost, like on despawn and owner disconnect. With Config.Bag.returnItem = true it is given back (on next login if the owner is offline).