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
  • ⚠️ Important Advice
  • Parameter
  1. Product
  2. Dream Cryptomining
  3. Server
  4. Exports

RefreshAllWarehouses

πŸ”§ Available since Version 1.0.5

This export is only available for serverside!

⚠️ Important Advice

This export is very powerful, the database is used by the update, as well as some validations on the server. Use this export only in case of importance and avoid sending it to all players. This requires performance, which can do a lot of damage. - DO NOT USE THIS IN A LOOP!! - DO NOT SENT IT TO ALL CLIENTS WHEN ONLY REQUIRED FOR A SPECIFIC PLAYER!! - DO NOT INVOKE WITHOUT REASON!!

Export Syntax
exports['dream_cryptomining']:RefreshAllWarehouses(TargetId)

Parameter

  1. TargetId (PlayerId) -> The PlayerId to which the new data is sent

Example Export
-- ⚠️ This will refresh the warehousedata on serverside and does not send it to any client
exports['dream_cryptomining']:RefreshAllWarehouses()

-- ⚠️ This will refresh the warehousedata on serverside and send it to id X
exports['dream_cryptomining']:RefreshAllWarehouses("X") -- e.g. PlayerId 10

-- ⚠️ This will refresh the warehousedata on serverside and send it to every client
exports['dream_cryptomining']:RefreshAllWarehouses(-1)
PreviousGetWarehouseServerNextDream Fakeplates

Last updated 11 months ago

πŸͺ™