Hey everyone, I'm having some serious issues with vehicle spawning in my QBCore server and I'm not sure what's going wrong.
Basically when multiple players are spawning vehicles quickly (like during events or just normal gameplay), the server starts lagging really bad - FPS drops from 60 to like 15-20. Then I start seeing 'entity limit reached' errors and vehicles just stop spawning altogether.
I've been using QBCore's standard SpawnVehicle function like this:
QBCore.Functions.SpawnVehicle(playerId, vehicleModel, coords, warpPlayer)
And for cleanup I'm doing DeleteVehicle(vehicle) when needed. But something isn't right because I keep getting these warnings in console about 'Failed to delete entity X'.
The weird thing is that when players disconnect, the performance doesn't recover - it seems like all these vehicles are just hanging around somewhere even though they're not visible anymore. I've heard other players mention rubberbanding issues too when there's been a lot of vehicle activity.
I'm running QBCore with OneSync Infinity and oxmysql for database stuff. Server has 32GB RAM so it's not a hardware issue. Any ideas what I might be doing wrong? Is there some special cleanup I need to do beyond just DeleteVehicle?
Thanks!
PotatoPC · 04/09/2026
Sign in to reply.