steamworks.userSteamId

Type String
Revision 2018.3333
Keywords steam, steamworks, userSteamId
See also steamworks.appOwnerSteamId
steamworks.*

Overview

The unique string ID of the user currently logged into the Steam client.

Gotchas

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.

Example

local steamworks = require( "plugin.steamworks" )

print( "Steam App ID: " .. tostring(steamworks.userSteamId) )