Entity or pool limit reached
The game ran out of room for vehicles, people or objects. Something is creating them and never cleaning up.
Do this first
A restart clears it temporarily. Finding which script leaks is the real fix.
What it means
GTA has hard pools for vehicles, peds and objects. When one fills, every further creation of that type returns 0 until something is deleted. The typical console form is Ran out of object slots or a pool-full warning.
Vehicles are the tightest in practice, and a server that has been up for days usually hits this before one that was just restarted, which is the clue.
What causes it
Ordered by how often it is the answer.
- 1
Entities created and never deleted
The single most common cause. A job script spawns a vehicle per use and only deletes it on the happy path.
- 2
Props spawned per interaction
A prop attached during an animation, then the animation is cancelled and the prop is orphaned.
- 3
Orphaned entities after a player leaves
Everything they created stays until something removes it.
- 4
A leak in a loop
A thread that creates before it checks whether it already has one.
How to tell which one is yours
-- server print(#GetAllVehicles(), #GetAllPeds(), #GetAllObjects())
Watch it over an hour. A number that only goes up is a leak, and the type that grows tells you which script to look at.
Where to look
Every Create* call, and whether each has a matching DeleteEntity on every path including the failure ones.
How to fix it
Delete on every exit path, and sweep what leaked:
local veh = spawnVehicle(...)
local ok = pcall(doTheJob, veh)
if DoesEntityExist(veh) then DeleteEntity(veh) end
-- and clean up after a player leaves
AddEventHandler('playerDropped', function()
local src = source
for _, veh in ipairs(GetAllVehicles()) do
if NetworkGetEntityOwner(veh) == src then DeleteEntity(veh) end
end
end)Still stuck on your own code?
This page is what this error usually means. Paste your console into Server Fixer and it will rank everything in it and tell you what to do first, and if you would rather not touch it, ORBIE can repair the script and hand the resource back ready to drop in.
bug_reportOpen Server Fixer