Passa al contenuto principale

GetWarehouseServer

warning

Questa esportazione è disponibile solo per il lato server!

Sintassi dell'Esportazione
exports['dream_cryptomining']:GetWarehouseServer(WarehouseId, ServerId) -- Restituisce una tabella con i dati

Parametro

  1. WarehouseId (Stringa) -> L'ID del Magazzino. Vedi Getallwarehouses.md
  2. ServerId (Stringa) -> L'ID del Server.

Risposta

Tabella di Risposta
{
"status": string -- [attivo, inattivo, guasto, non disponibile]
}
Esempio di Esportazione
local WarehouseServer = exports['dream_cryptomining']:GetWarehouseServer("IDMAGAZZINO", "IDSERVER")
print(WarehouseServer.status) -- ✉️ Stato del Server