Having an issue where stacked items like water bottles are showing up as separate single items after restarts. Players end up with 3 separate 'water_bottle' entries instead of one stack of 12.
The database shows multiple records with different stack IDs for the same item type in the same container. Like seeing 'water_bottle' appear 3 times with stack_ids '1001', '1098', '1156' in the same backpack when it should be one entry with amount 12.
Server logs show 'Duplicate primary key' warnings during inventory load phase. Happens especially bad when we have 150+ players online during restarts.
Anyone seen this with qb-inventory? The MySQL auto-increment seems to be creating conflicts somehow but I'm not sure where the actual problem lies in the loading logic.
ApexPredator · 02/09/2026
Are you using any custom inventory management scripts alongside qb-inventory, or is this pure QBCore + qb-inventory? Also, does your restart process involve clearing/loading all inventories simultaneously or is there some kind of staggered approach?
VortexGamer · 02/09/2026
Sign in to reply.