getGameData()

Overview:

Get user game data for the current game and current citizen.

You can get your saved data from the server through this API. The compressed flag will be the flag you set when calling the set API. If you set compressed by the server, then data from this API will automatically decompress to your raw data, otherwise, it will return your custom compressed data.

Usage:

client.user.data.getGameData()
.then((response) => {
    const userGameData = response;
    // write your code here.
})
.catch((error) => {
    // handle error.
})

Requirement:

none

Parameters:

none

Return:

  • Success:

Promise<IUserGameData>
  • Failed:

error

Error:

500 Internal Server Error

Last updated