Having issues with qb-clothing where saved outfits apply visually but don't stick to the character. When a player loads a saved outfit, it shows up on their model temporarily but then reverts back to default after certain events (death, relog, etc.).
The outfit management seems to work initially - players can save and load outfits fine, but something's not syncing properly between what they see and what gets stored in their character data. Other players might catch glimpses of the outfit before it disappears.
Here's the server-side handler I'm working with:
RegisterNetEvent('qb-clothing:server:loadOutfit', function(outfitId)
local src = source
local Player = QBCore.Functions.GetPlayer(src)
local outfitData = Player.PlayerData.outfits[outfitId]
TriggerClientEvent('qb-clothing:client:loadOutfit', src, outfitData)
end)Anyone run into similar outfit persistence issues? Wondering if there's something I'm missing about how outfit data gets tied to the actual character versus just the temporary session.
NexusZero · 03/09/2026
Two things I need to know before diving deeper:
Are you running this on OneSync Infinity or regular OneSync? The statebag behavior differs significantly between them.
What does your character transfer process look like - specifically how are you handling the PlayerData cleanup between characters? That warning about accessing outfit data for the wrong character slot suggests the transfer isn't fully clearing the old character state before loading the new one.
ShadowRider · 03/09/2026
Sign in to reply.
Running OneSync Infinity with dynamic routing buckets enabled. Character transfer uses the standard QBCore events - OnPlayerUnload and OnPlayerLoad. The transfer itself works fine for everything else (money, inventory, etc.) but outfit data seems to get stuck between characters.
I'm seeing that warning about accessing outfit data for the wrong character slot too - [Server] [^3WARNING^7] Attempted to access outfit data for player ID 1234 on character slot 2 but statebag contains character slot 1 data. Just wasn't sure if the outfit system handles character switching differently than other player data.
NexusZero · 04/09/2026