1.0.3 • Published 2 years ago

@999-cs/game-stats v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

⚡ 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 : MTASA_QUERY

Available Methods :

  • query : To get server info

News :

  • Fix : Server Variable Error