Skip to content

freezegr/FiveM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👋 FiveM API 👋

downloads License: MIT owner


Installation

npm install @freezegold/fivem --save

Server Status

const api = require('@freezegold/fivem');
const server = new api.Server('103.252.88.101:30120');
server.getServerStatus().then(res => {
  console.log(res);
});

Online Players

server.getOnlinePlayers().then(res => {
  console.log(res);
});

Online Player Count

server.getOnlinePlayersCount().then(res => {
  console.log(res);
});

Max Player Slot

server.getMaxSlotPlayer().then(res => {
  console.log(res);
});

Server Version

server.getVersion().then(res => {
  console.log(res);
});

Server Tags

server.getTags().then(res => {
  console.log(res);
});

Resources

server.getresources().then(res => {
  console.log(res);
});

Region Locate

server.getLocale().then(res => {
  console.log(res);
});

License

server.getLicense().then(res => {
  console.log(res);
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published