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