Dream Services
Discord Shop
  • Home
    • Welcome
    • FAQ
    • Purchase
    • Keymaster
    • Common issues
  • Support
    • Support Policy
    • πŸ‡ΊπŸ‡ΈTicket Rules (EN)
    • πŸ‡©πŸ‡ͺTicket Rules (GER)
  • Development Guide
    • Create own locale
  • Product
    • 🎰Dream Vending
      • Config Preview
      • Installation
      • Item Use Effect API
    • 🚘Dream Used Cardealer
      • Config Preview
      • Installation
    • ⚑Dream Solarsystems
      • Config Preview
      • Installation
    • πŸ”ŒDream Solarjob
      • Config Preview
      • Installation
    • πŸͺ™Dream Cryptomining
      • Config Preview
      • Installation
      • Create Warehouses
      • Server
        • Exports
          • IsWarehouseAvailable
          • GetAllWarehouses
          • GetPlayerWarehouses
          • GetWarehouse
          • GetWarehouseWorth
          • GetWarehouseRevenue
          • GetWarehouseTransactions
          • GetWarehouseAllServer
          • GetWarehouseAllServerStatus
          • GetWarehouseServer
          • RefreshAllWarehouses
    • πŸš™Dream Fakeplates
      • Config Preview
      • IsPlateFake
    • 🐟Dream Fishing
      • Config Preview
    • πŸͺDream Market Stalls
      • Config Preview
    • 🚬Dream Smoking
      • Config Preview
      • Installation
Powered by GitBook
On this page
  • Parameter
  • Response
  1. Product
  2. Dream Cryptomining
  3. Server
  4. Exports

GetPlayerWarehouses

πŸ”§ Available since Version 1.0.5

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, 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
PreviousGetAllWarehousesNextGetWarehouse

Last updated 11 months ago

πŸͺ™