GetWarehouseAllServerStatus
warnung
Dieser Export ist nur für serverseitige Anwendungen verfügbar!
Export Syntax
exports['dream_cryptomining']:GetWarehouseAllServerStatus(WarehouseId) -- Returns a table with data
Parameter
- WarehouseId (String) -> Die Warehouse-ID. Siehe 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) -- ✅ Anzahl aktiver Server
print(WarehouseServerStatus.inactive) -- ⚠️ Anzahl inaktiver Server
print(WarehouseServerStatus.broken) -- 🔨 Anzahl defekter Server
print(WarehouseServerStatus.unavailable) -- ✖️ Anzahl nicht verfügbarer Server