Steam.isPlayingSharedGame()

IsPlayingSharedGame returns the original owner's SteamID if a borrowing account is currently playing this game. If the game is not borrowed or the borrower currently doesn't play this game, the result is always 0.

Usage

Hover over inputs/exits for more info.

var Steam = require('machinepack-steam');


// IsPlayingSharedGame returns the original owner's SteamID if a borrowing account is currently playing this game. If the game is not borrowed or the borrower currently doesn't play this game, the result is always 0.

Steam.isPlayingSharedGame({

steamid: '76561197960435530',

key: 'XXXXXXXXXXXXXXXXXXXXXXX',

appid_playing: '240',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

steamid required

The SteamID of the account playing.

'76561197960435530'
key required

Steam API Key

'XXXXXXXXXXXXXXXXXXXXXXX'
appid_playing

The AppID of the game currently playing.

'240'

Exits

error

An unexpected error occurred.

success

OK.

{ lender_steamid: '0' }