cfx-resolve
v1.0.15
Published
Resolve CFX token to host informations for FiveM
Downloads
9
Readme
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")
withnpm i cfx-resolve
oryarn 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.