Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.
/ qbcore.js Public archive

Type definitions for QBCore Framework Fivem

License

Notifications You must be signed in to change notification settings

LiamDormon/qbcore.js

Repository files navigation

QBCore.js

About

This is a JavaScript/TypeScript wrapper for the QBCore framework in FiveM, based on esx.js by 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

import { Client } from 'qbcore.js'

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

Server

import { Server } from 'qbcore.js'

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

You can also import a single type:

import { Player } from 'qbcore.js/@types/server'

const Player: Player

Contributions and Additions are always welcome!

About

Type definitions for QBCore Framework Fivem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published