GetPlayerWarehouses
warning
This export is only available for serverside!
Export Syntax
exports['dream_cryptomining']:GetPlayerWarehouses(PlayerId) -- Returns a table with data
Parameterโ
- 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