@kori_xyz/fivem-lookup
v0.0.3
Published
Simple fivem consult server stats
Downloads
15
Readme
Install
Available for any computer running nodejs
yarn
yarn add @kori_xyz/fivem-lookup
npm
npm install @kori_xyz/fivem-lookup
Example
import FivemServer from "@kori_xyz/fivem-lookup";
const server = new FivemServer("131.196.198.220:30120");
// number of milliseconds it took to ping the server
console.log(await server.ping());
// information about the server
console.log(await server.info());
// an array of players on the server
console.log(await server.players());
License
This project is licensed under the Apache License 2.0 - see the LICENSE.md file for details.