@kori_xyz/fivem-lookup

Simple fivem consult server stats


Keywords
fivem, fivem-status, fivem-api
License
ISC
Install
npm install @kori_xyz/fivem-lookup@0.0.3

Documentation

Collect information about a Fivem server 👀

NPM latest version Downloads

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.