Skip to content

Commit

Permalink
📝 Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-1610 committed Jul 20, 2022
1 parent 1d72373 commit ae6eb4d
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit ae6eb4d

Please sign in to comment.