Skip to main content

RefreshAllWarehouses

warning

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)