GetWarehouseAllServer
waarschuwing
This export is only available for serverside!
exports['dream_cryptomining']:GetWarehouseAllServer(WarehouseId) -- Returns a table with data
Parameterโ
- WarehouseId (String) -> The Warehouse-Id. See Getallwarehouses.md
Responseโ
Response Table
{
    "SERVERID": {
        "status": string -- [active, inactive, broken, unavailable]
    },
    ...   
}
Example Export
local WarehouseServers = exports['dream_cryptomining']:GetWarehouseAllServer("WAREHOUSEID")
-- ๐ This will loop the warehouse servers
for key, value in pairs(WarehouseServers) do
    print(key) -- ๐ ServerId
    print(value.status) -- โ๏ธ Server Status
end