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...