Skip to content

ZackaryH8/altv-api-wrapper

Repository files navigation

TfL Logo

alt:V API Wrapper

A NodeJS wrapper for the alt:V API, made with TypeScript.

Read the Documentation

Language grade: JavaScript NPM Version Issues

Installation

npm install altv-api-wrapper
yarn add altv-api-wrapper

Contribute

There are many ways to contribute to this repo.

Example Usage

Get Server By Host

Callback

import { Masterlist } from 'altv-api-wrapper';

const masterlist = new Masterlist()

masterlist.getServerByHost('xxxx').then((result) => {
    console.log(result)
})

Async... await

import { Masterlist } from 'altv-api-wrapper';

const masterlist = new Masterlist()

async function getServerByHost() {
    const server = await masterlist.getServerByHost('xxxx');
    console.log(server)
}

Disclaimer

This repository is not affiliated, associated, authorized, endorsed by, or in any way officially connected with alt:V, or the alt:MP team.