Skip to main content

GetPlayerWarehouses

warning

This export is only available for serverside!

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

Parameterโ€‹

  1. PlayerId (String) -> The PlayerId of a specific player

Responseโ€‹

See Getallwarehouses.md, but only with player-owned warehouses

Example Export
local Warehouses = exports['dream_cryptomining']:GetPlayerWarehouses(source)

-- ๐ŸŽ‰ This will only loop the warehouses owned by the specific player
for key, value in pairs(Warehouses) do
print(value.id) -- ๐Ÿ“Œ WarehouseId
print(value.price) -- ๐Ÿ’ธ Warehouse Price
print(value.warehouse) -- โœ‰๏ธ Warehouse Type

-- ๐Ÿ’ฌ Use all other variables...
end