Skip to content

Offline Storage

Overview

Creators can access stored player data, both in normal Persistent Storage tables and Shared Data Keys when players are offline using Offline Storage. This data can searched and loaded for players by ID, but not changed unless the player is online.

Accessing Player Data

Persistent Storage

The Storage.GetOfflinePlayerData function allows you to access stored player data tables the same way you would for online players. You will not be able to modify this data, however, until players are connected to the game again with Storage.SetPlayerData.

Shared Keys

The Storage.GetSharedOfflinePlayerData allows you to access data on Shared Data Tables between games for offline players. To access this you will need a reference to the data table key and the player id.

Finding Player ID's

Finding player ID's is not as direct when they are offline, and cannot be found through the Game.GetPlayers API.

Using a Leaderboard

Leaderboards players' names, id's and a score, and can be used as a way to keep track of players whose data will be needed later for a specific scenario. See the Leaderboard Reference for more information about using them.


Learn More

Persistent Storage Reference | Shared Storage Reference | Storage in the Core Lua API | Leaderboards in the Core Lua API | Persistent Storage Tutorial


Last update: September 13, 2021