npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@mrfix.dz/fivem-status

v2.0.0

Published

fivem-status is a package to monitor the status of a FiveM server, displaying details like online/offline status, player count, and server information.

Downloads

7

Readme

Server Information API

Author: MR-FIX
Discord: dev.mrfix
GitHub: mrfix-dz
NpmJs: mrfix.dz

This package allows you to interact with a server to retrieve various pieces of information such as the number of players, server status, resources, and other details from the server API.

Features

  • Get the number of players currently connected to the server.
  • Get the full list of players connected to the server.
  • Retrieve the server's maximum player limit.
  • Fetch server resources and configuration.
  • Check if the server is online or offline.
  • Retrieve various server-related details like developer, project name, version, etc.

Installation

To install this package, run the following command:

npm install @mrfix.dz/fivem-status

Available Methods

getNumberPlayers()

Returns the number of players currently connected to the server.

getPlayers()

Returns the full list of players connected to the server.

getMaxPlayers()

Returns the server's maximum player limit.

getResources()

Fetches server resources and configuration.

getServerStatus()

Returns the status of the server, either online or offline.

getDeveloper()

Returns the server's developer information.

getProjectName()

Returns the project's name.

getTags()

Returns the server’s tags.

getVersion()

Returns the server's version.

getLocale()

Returns the server’s locale.

getTxAdminVersion()

Returns the server's txAdmin version.

getLicenseKeyToken()

Returns the server’s license key token.

getActivitypubFeed()

Returns the ActivityPub feed of the server.

getConnectingBanner()

Returns the banner shown when connecting to the server.

getDetailBanner()

Returns the banner shown on the server details page.

getOnesync()

Returns whether Onesync is enabled on the server.

getscriptHook()

Returns whether script hooks are allowed on the server.

getDiscord()

Returns the Discord link for the server.

getOwners()

Returns the server owners.

getProjectDesc()

Returns the project description.

Usage

Here’s an example of how you can use the API:

const { Server } = require('@mrfix.dz/fivem-status');

// Initialize the server with its IP address and port
const server = new Server({ ip: '127.0.0.1', port: 30120 });

// Fetching the number of connected players
server.getNumberPlayers()
  .then(numberOfPlayers => {
    console.log(`Number of players connected: ${numberOfPlayers}`);
  })
  .catch(error => console.error(error));

// Fetching the server's maximum player limit
server.getMaxPlayers()
  .then(maxPlayers => {
    console.log(`Max players allowed: ${maxPlayers}`);
  })
  .catch(error => console.error(error));

// Fetching server status (online/offline)
server.getServerStatus()
  .then(status => {
    console.log(`Server status: ${status}`);
  })
  .catch(error => console.error(error));

// Fetching other details like developer info
server.getDeveloper()
  .then(developer => {
    console.log(`Developer: ${developer}`);
  })
  .catch(error => console.error(error));