you can create table and put coordinates and width or height if they vary
-- Store your coordinates and width height here
local warehouses = { {x, y, z, width, height},
{x1, y2, z2, width2, height},}
local warehouse = {col = {}, radar = {}}
for i, v in ipairs(warehouses) do
local x, y, z, w, h = unpack(v)
warehouse.col[i] = createColRectangle(x, y, z, w, h)
warehouse.radar[i] = createRadarArea(x, y, z, w, h, 0, 0, 255, 90)
end