Skip to content

CreationOfGenji/fivem-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

A simple FiveM module to suit your needs!

Usage And Installation

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

Credits to ThatAnonymousG for making this module axios based!

Credits to JackCrispy's Module for the source code.

About

A simple FiveM module to suit your needs!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published