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