fivem-server

1.0.1 • Public • Published

FiveM-Server

Small package in order to interact with FiveM API

How-to install :

npm i fivem-server

How-to use : Here is an example to display the number of players online on a server.

const myIp = "11.111.111.111:30120"
const  fivem_server =  require("fivem-server");
const  fivemApi  =  new  fivem_server(myIp)
fivemApi.getAllInfo()
.then(console.log)
.catch(console.log)

players mehtods:

fivemApi.getPlayers()
.then(console.log)
.catch(console.log)

methods

  • getAllInfo() > - getName() > - getResources() > - getIcon() > - getBanner_connecting() > - getBanner_detail() > - getPlayers() > - getPlayersCount()

completing ..

Package Sidebar

Install

npm i fivem-server

Weekly Downloads

7

Version

1.0.1

License

ISC

Unpacked Size

4.88 kB

Total Files

5

Last publish

Collaborators

  • sajjadmrx