Closed middoors closed 4 years ago
SteamIDs and inspect keys (the "D" number) are too big to be represented as numbers in JavaScript. The maximum integer that can be represented with guaranteed precision is 2^53.
Wrap those numbers in quotes to turn them into strings.
It worked! Thanks for the prompt reply :)
1) How can I directly use the link and feed it into inspectItem() like the following:
let owner = 'steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S%76561198036030455%A%19484048566%D16585286310613617655'
2) another question I have is whether I can inspect multiple items at the same time?
That's not a valid link. There should not be % around the SteamID and assetID values.
No, you can't.
that did the job thanks 👍
Hi, I have the following code, but the csgo.inspectItem doesn't respond at all. I would really appreciate it if you could help me out:
`import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module';
const SteamUser = require('steam-user'); const GlobalOffensive = require('globaloffensive');
async function bootstrap() { const app = await NestFactory.create(AppModule, { cors: true });
await app.listen(3000);
let user = new SteamUser(); let csgo = new GlobalOffensive(user);
user.logOn({ accountName: 'myusername', password: 'mypassword', });
user.on('loggedOn', function(details) {
});
user.on('emailInfo', function(address, validated) {
});
user.on('wallet', function(hasWallet, currency, balance) {
}); } bootstrap(); `