@999-cs/game-stats
v1.0.3
Published
Simple Game Stats Pkg
Downloads
675
Readme
⚡ 999-cs/game-stats Package
Game-stats is a Node library which provides games stats from Game-stats
What can I do?
- get all mta server info (OnlinePlayers , server info , server variables)
Getting Started :
Installation :
To use Game-stats in your project, run:
$ npm i @999-cs/game-stats
$ npm install @999-cs/game-stats
Usage :
First - Create a js file
Second - Install package
Third - Write your code
Exemple - fetch a mta server
const gameStats = require("@999-cs/game-stats");
gameStats.query({ip:'51.75.182.50',port:'22003',type:'mtasa'} , function (error,GAMESTATS){
if(error){
console.log(error)
} else {
console.error(GAMESTATS)
}
});
Finaly - Run Your code
$ node .
Photo :
Available Methods :
- query : To get server info
News :
- Fix : Server Variable Error