A simple FiveM module to suit your needs!
npm i fivem-module
const FiveM = require("fivem-module")
//initalizes the Server class (make sure you put your server ip where it says 'Server IP')
const server = new FiveM.Server('Server IP')
//Get Players (in numbers)
server.getPlayers()
.then(data => console.log(data))
//Get The Uptime Of The Server
server.getUptime()
.then(data => console.log(data))
//Get The Resources This Server Uses In An Array
server.getResources()
.then(data => console.log(data))
//Get The Tags Of This Server
server.getTags()
.then(data => console.log(data))
//Get The Server This Server Is Running On
server.getServer()
.then(data => console.log(data))
Credits to ThatAnonymousG for making this module axios based!
Credits to JackCrispy's Module for the source code.