fivem-server-info
v2.0.1
Published
NPM | Package allowing to get information from a FiveM server using its ip
Downloads
30
Readme
fivem-server-info
About
Package allowing to get information from a FiveM server using its ip
Installation
npm install fivem-server-info
usage
const fivem = require('fivem-server-info');
fivem.connected_users("IP", "Optional port"); //Set to 30120 if null
fivem.max_users("IP", "Optional port"); //Set to 30120 if null
fivem.user_list("IP", "Optional port"); //Set to 30120 if null
Example
const fivem = require('fivem-server-info');
async function example() {
const connect = await fivem.connected_users("extinction5.gtaliferp.fr");
const max = await fivem.max_users("extinction5.gtaliferp.fr");
console.log(connect + "/" + max);
const list = await fivem.user_list("extinction5.gtaliferp.fr");
console.log(list)
}
example();
With port
const fivem = require('fivem-server-info');
async function example() {
const connect = await fivem.connected_users("extinction5.gtaliferp.fr", 30120);
const max = await fivem.max_users("extinction5.gtaliferp.fr", 30120);
console.log(connect + "/" + max);
const list = await fivem.user_list("extinction5.gtaliferp.fr", 30120);
console.log(list)
}
example();
Support
If you have any idea or feature suggestion do not hesitate to open issue on the github page or contact me on Discord: Bycop#4757