Use GetEntityModel when you iterate over GetGamePool('CObject').

GetGamePool() returns the entity handles, so you need to get the model hash using GetEntityModel():

local objects = GetGamePool('CObject')

for _, entity in ipairs(objects) do
    local model = GetEntityModel(entity)
end