object.steamLevel

Type Number
Revision Release 2024.3703
Keywords steam, steamworks, getUserInfo, UserInfo, steamLevel
See also steamworks.getUserInfo()
steamworks.*

Overview

An integer indicating a user’s current level on Steam as seen under their profile screen. This Level number starts at 1 and increases when the user purchases games, trades Steam cards, crafts Steam badges, etc.

Example

local steamworks = require( "plugin.steamworks" )

-- Print the currently logged in user's current steam level
local userInfo = steamworks.getUserInfo()

if ( userInfo ) then
    print( "User's Steam Level: " .. tostring( userInfo.steamLevel ) )
end