Jump to content
McKay Development

getsteamid64?


greenpig

Recommended Posts

If you want to get the SteamID of the user currently signed in,

You can use following: (Client being steam-user instance)

client.steamID;
client.steamID.getSteamID64()
client.steamID.getSteam3RenderedID()

// Function names should be self-explanatory

thanks also i want to ask i tried to use this 

var userinfoapi = 'http://backpack.tf/api/users/info/v1?steamids='+ client.steamID.getSteamID64() + '%2C76561198070299574&key=' + config.bptftoken; 

 

it output this 

	
 
[Finished in 2.009s]

TypeError: Cannot read property 'getSteamID64' of null at [stdin]:vm.js:23:33) at Object.runInThisContext (vm.js:95:38) at Object.<anonymous> ([stdin]-wrapper:6:22) at Module._compile (module.js:571:32) at Immediate.<anonymous> (bootstrap_node.js:392:29) at runCallback (timers.js:666:20) at tryOnImmediate (timers.js:639:5) at processImmediate [as _immediateCallback] (timers.js:611:5)

[Finished in 2.009s]
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...