DoctorMcKay / node-globaloffensive

A Node.js module to connect to and interact with the CS2 game coordinator. Mostly used to get item data.
https://www.npmjs.com/package/globaloffensive
MIT License
262 stars 61 forks source link

How to check the float? #34

Closed ProNikolay37 closed 5 years ago

ProNikolay37 commented 5 years ago

I created js file in which I registered this:

const SteamUser = require('steam-user'); const GlobalOffensive = require('globaloffensive');

let user = new SteamUser(); let csgo = new GlobalOffensive(user);

user.logOn({ "accountName": "...", "password": "..." }); user.on('loggedOn', function(details) { console.log("Logged into Steam as " + user.steamID.getSteam3RenderedID()); user.setPersona(SteamUser.EPersonaState.Online); user.gamesPlayed(730); csgo.inspectItem('steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198334769752A16578240883D14421726855138953619') user.logOff(); });

Why can't I get float?

DoctorMcKay commented 5 years ago

Because you didn't wait for a GC session.