Skip to main content

GetWarehouse

warning

This export is only available for serverside!

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

Parameter

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

Response

See Getallwarehouses.md, but only for a specific warehouse

Example Export
-- 
local Warehouse10 = exports['dream_cryptomining']:GetWarehouse("10")

-- ⚠️ You do not need to enumerate here!
print(Warehouse10.id) -- 📌 WarehouseId
print(Warehouse10.price) -- 💸 Warehouse Price
print(Warehouse10.warehouse) -- ✉️ Warehouse Type

-- 💬 Use all other variables...