KAIRO OutfitBag
Troubleshooting
The item has no image in the inventory
The image is in the wrong folder or has a different name: it must be outfitbag.png. Check the table in Installation, restart the inventory and clear the FiveM cache.
I use the item but nothing happens
The item isn’t marked usable (useable = true in the qb/qs/origen files; ox_inventory needs server = { export = 'kairo_outfitbag.useBag' }), or the folder isn’t named kairo_outfitbag, or the inventory detected in the console is wrong: set it by hand. With an unsupported inventory use Custom.RegisterUsable, Custom.AddItem and Custom.RemoveItem.
Bag outfits don’t reach the closet (or vice versa)
Check Config.WardrobeSync = true and that the console shows your system after wardrobe:, not standalone. If it’s standalone, your closet isn’t supported or not running: set Config.Wardrobe by hand or use Custom.Wardrobe. Outfits saved earlier in the bag’s list stay in the kairo_outfitbag_outfits table.
On relog the character is back in the old clothes
The skin isn’t saved: with Config.Debug = true check skin save: in F8. With recent esx_skin the bag saves server side through the esx_skin:SaveOutfit export, so esx_skin must be running and up to date. With an unsupported clothing system write Custom.SaveSkin.
The preview leaves the frame
Adjust Config.Preview.camera: screenX for horizontal position, distance for size, height for height. If there’s a wall behind the camera point, the camera moves closer by itself and the character may look bigger.
A piece changes without animation
The configured animation doesn’t exist in your game build: the bag skips it and changes the piece anyway. Replace it in Config.Animations.change.
A strange piece shows up while changing
With custom streamed clothing the “nothing worn” ids may differ. Fix the numbers in Config.Undress.male / female, or turn it off with Config.Undress.enabled = false.
“could not create the outfit table” in the console
The database user can’t create tables: import install/sql/outfitbag.sql once.
The bag doesn’t open with the target
The target starts after the bag or isn’t detected. Start it first, set Config.Target by hand, or use Config.Interaction = 'textui'.
