Type String Revision Release 2024.3703 Keywords steam, steamworks, userSteamId See also steamworks.appOwnerSteamId steamworks.*
The unique string ID of the user currently logged into the Steam client.
This will be nil
if the steamworks.isLoggedOn property is false
, indicating the application is not currently connected to the Steam client. It will also be nil
if a valid appId
was not set in config.lua
as documented here.
local steamworks = require( "plugin.steamworks" ) print( "Steam App ID: " .. tostring(steamworks.userSteamId) )