GetWarehouseAllServerStatus
warning
This export is only available for serverside!
Export Syntax
exports['dream_cryptomining']:GetWarehouseAllServerStatus(WarehouseId) -- Returns a table with data
Parameterโ
- 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