Skip to main content

GetWarehouseServer

warning

This export is only available for serverside!

Export Syntax
exports['dream_cryptomining']:GetWarehouseServer(WarehouseId, ServerId) -- Returns a table with data

Parameter

  1. WarehouseId (String) -> The Warehouse-Id. See Getallwarehouses.md
  2. ServerId (String) -> The Server-Id.

Response

Response Table
{
"status": string -- [active, inactive, broken, unavailable]
}
Example Export
local WarehouseServer = exports['dream_cryptomining']:GetWarehouseServer("WAREHOUSEID", "SERVERID")
print(WarehouseServer.status) -- ✉️ Server Status