Skip to content

xaronnn/cfx-resolve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CFX-Resolve

Resolve CFX token to host informations for FiveM.

CDN

  • Call to your page if you want to use on web version (https://cdn.jsdelivr.net/npm/cfx-resolve@latest/cfx-resolve.js)
  • Call to your application if you want to use on Node (require("cfx-resolve") with npm i cfx-resolve or yarn add cfx-resolve)

Usage

const { resolve } = require("cfx-resolve"); //if you are on Node 

resolve("5odg9a", { //cfx token ("5odg9a" or https://cfx.re/join/5odg9a)
    "info": true, //additional returns server informations
    "players": true, //additinal returns server players list
    "geo": true //additional returns IP geo location
}).then(data => {
    console.log(data);
}).catch(err => {
    console.log("[ERROR] "+err.message);
})

License

Distributed under the Apache-2.0 License. See LICENSE for more information.

About

Resolve CFX token to host informations for FiveM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published