Saltar al contenido principal

GetWarehouseAllServer

aviso

This export is only available for serverside!

exports['dream_cryptomining']:GetWarehouseAllServer(WarehouseId) -- Returns a table with data

Parameter

  1. 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