Type Function Return value Boolean Revision Release 2024.3703 Keywords steam, steamworks, achievements, resetUserProgress See also steamworks.resetUserStats() steamworks.*
Clears all stat data to nil
and
Returns true
if the reset request was successfully accepted by Steam.
Returns false
if the steamworks.isLoggedOn property is false
.
Calling this function is typically only appropriate for testing purposes, as most players would not expect to lose their unlocked achievements. If you want to provide an option for users to clear only their stat data, consider using the steamworks.resetUserStats() function instead.
This does not clear the user’s high scores from leaderboards.
The userProgressUpdate event will not be dispatched after calling this function.
steamworks.resetUserProgress()
local steamworks = require( "plugin.steamworks" ) -- Clear all stat data and lock all achievements for the currently logged in user steamworks.resetUserProgress()