Skip to main content

GetWarehouseAllServerStatus

warning

This export is only available for serverside!

Export Syntax
exports['dream_cryptomining']:GetWarehouseAllServerStatus(WarehouseId) -- Returns a table with data

Parameter

  1. WarehouseId (String) -> The Warehouse-Id. See Getallwarehouses.md

Response

Response Table
{
"active": integer,
"inactive": integer,
"broken": integer,
"unavailable": integer,
}
Example Export
local WarehouseServerStatus = exports['dream_cryptomining']:GetWarehouseAllServerStatus("WAREHOUSEID")

print(WarehouseServerStatus.active) -- ✅ Count of active server
print(WarehouseServerStatus.inactive) -- ⚠️ Count of inactive server
print(WarehouseServerStatus.broken) -- 🔨 Count of broke server
print(WarehouseServerStatus.unavailable) -- ✖️ Count of unavailable server