From ae6eb4d20ae6aa27386339ac6d952702337bef62 Mon Sep 17 00:00:00 2001 From: Pablo Zapata Date: Wed, 20 Jul 2022 19:01:20 +0200 Subject: [PATCH] :memo: Update README --- README.md | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8983dc2..ee13862 100644 --- a/README.md +++ b/README.md @@ -12,14 +12,7 @@ npm i cfx-api **How to use**: ```js -const cfx = require("cfx-api"); +const cfx = require("cfxre-api"); -const server = cfx.retrieveFive("v45z95").then(server => { // Replace v45z95 with a server id - console.log(server.getHostName()) - - console.log(server.getOwnerProfileUrl()) - - server.getPlayers().forEach(player => { - console.log(player.name) - }) -}) +const server = await cfx.retrieveFive("v48z95"); // Replace v48z95 with any FiveM server id +console.log(server.hostname);