@devkrieger/sampquery
v2.2.2
Published
A tool for interact with SA-MP Queries
Downloads
3
Readme
sampquery
A tool for interact with SA-MP Queries
Instalation
npm install @devkrieger/sampquery
and, done xD.
Simple Example
Getting Server info.
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);
});