A tool for interact with SA-MP Queries
npm install @devkrieger/sampquery
and, done xD.
const squery = require("@devkrieger/sampquery");
const server = new squery.SampQuery({
ipaddress: "127.0.0.1",
port: 7778,
rconpassword: "password",
});
server.getServerInformation((info, err) => {
if (err) {
return console.log(err);
}
console.log(info);
});