# qbcore.js

> Type definitions for QBCore Framework, based on esx.js by itschip

Latest version **1.5.1** (published 2022-02-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install qbcore.js
pnpm add qbcore.js
yarn add qbcore.js
bun add qbcore.js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.5.1 |
| Published | 2022-02-04 |
| First published | 2021-09-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 924.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Liam Dormon |
| Maintainers | mojito-fivem |
| Keywords | fivem, qbcore, qb-core, qbus, types, gtav, ts, citizenfx, typescript |

## Links

- npm: https://www.npmjs.com/package/qbcore.js
- Repository: https://github.com/mojito-fivem/qbcore.js
- Homepage: https://github.com/mojito-fivem/qbcore.js#readme
- Issues: https://github.com/mojito-fivem/qbcore/issues
- npm.io page: https://npm.io/package/qbcore.js

## Alternatives

- [csv-to-markdown-table](https://npm.io/package/csv-to-markdown-table.md) — 47.0K weekly downloads
- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads

## Recent versions

- 1.5.1 (latest) — 2022-02-04
- 1.5.0 — 2022-01-05
- 1.4.2 — 2021-12-07
- 1.4.1 — 2021-11-08
- 1.4.0 — 2021-11-08
- 1.3.1 — 2021-11-01
- 1.3.0 — 2021-10-31
- 1.2.4 — 2021-10-30
- 1.2.3 — 2021-10-14
- 1.2.2 — 2021-10-07
- 1.2.1 — 2021-10-07
- 1.2.0 — 2021-10-06
- 1.1.6 — 2021-10-05
- 1.1.5 — 2021-10-05
- 1.1.4 — 2021-10-05
- … 8 more at https://npm.io/package/qbcore.js/versions

## README

# QBCore.js
<div style="margin: auto 0; width: 100%">
  <div>
  <a href="https://www.npmjs.com/package/qbcore.js">
    <img src="https://img.shields.io/npm/v/qbcore.js?style=flat" alt="npm version">
  </a>
  <a href="https://www.npmjs.com/package/qbcore.js">
    <img src="https://img.shields.io/npm/dm/qbcore.js?style=flat">
  </a>
</div>

## About

This is a JavaScript/TypeScript wrapper for the QBCore framework in FiveM, based on esx.js by [itschip](https://github.com/itschip). 

If you experience any issues, please post them in the `Issues`. 

## Guide

### `Installation`

Run `npm i qbcore.js` to install the package. When this is done you are ready to use it. 

### `Usage`

So how do you use it? 

First you need to import either the `Client` class or `Server` class. 

### `Client`

```js
import { Client } from 'qbcore.js'

let QBCore: Client = exports['qb-core'].GetCoreObject()

```

### `Server`
```js
import { Server } from 'qbcore.js'

let QBCore: Server = exports['qb-core'].GetCoreObject()
```

## You can also import a single type:
```js
import { Player } from 'qbcore.js/@types/server'

const Player: Player
```

### Contributions and Additions are always welcome!

---
_Source: https://npm.io/package/qbcore.js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
