GetWarehouseServer
warning
This export is only available for serverside!
Export Syntax
exports['dream_cryptomining']:GetWarehouseServer(WarehouseId, ServerId) -- Returns a table with data
Parameter
- WarehouseId (String) -> The Warehouse-Id. See Getallwarehouses.md
- 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