GetWarehouseServer
warnung
Dieser Export ist nur für serverseitige Anwendungen verfügbar!
Export Syntax
exports['dream_cryptomining']:GetWarehouseServer(WarehouseId, ServerId) -- Returns a table with data
Parameter
- WarehouseId (String) -> Die Lager-ID. Siehe Getallwarehouses.md
- ServerId (String) -> Die Server-ID.
Response
Response Table
{
"status": string -- [active, inactive, broken, unavailable]
}
Beispiel Export
local WarehouseServer = exports['dream_cryptomining']:GetWarehouseServer("WAREHOUSEID", "SERVERID")
print(WarehouseServer.status) -- ✉️ Server Status