greenpig Posted January 12, 2018 Report Share Posted January 12, 2018 how to use this to get bot steam id? Quote Link to comment Share on other sites More sharing options...
TomYoki Posted January 12, 2018 Report Share Posted January 12, 2018 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 Quote Link to comment Share on other sites More sharing options...
greenpig Posted January 13, 2018 Author Report Share Posted January 13, 2018 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-explanatorythanks 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] Quote Link to comment Share on other sites More sharing options...
TomYoki Posted January 13, 2018 Report Share Posted January 13, 2018 I am not completely sure why this happens,however this may happen if you're attempting to get it before cookies have been set. Attempt to fire the function when you have set cookies & sessionID. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted January 13, 2018 Report Share Posted January 13, 2018 Yeah you're trying to read it before you're logged on. Quote Link to comment Share on other sites More sharing options...
greenpig Posted January 15, 2018 Author Report Share Posted January 15, 2018 I am not completely sure why this happens,however this may happen if you're attempting to get it before cookies have been set. Attempt to fire the function when you have set cookies & sessionID.still not working any other way? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.