Zum Hauptinhalt springen

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

  1. WarehouseId (String) -> Die Lager-ID. Siehe Getallwarehouses.md
  2. 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