1.1.8 • Published 3 years ago

esx.js v1.1.8

Weekly downloads
78
License
MIT
Repository
github
Last release
3 years ago

ESX.js

About

This is a JavaScript/TypeScript wrapper for the ESX (es_extended) framework in FiveM.

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

Guide

Installation

Run npm i esx.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 'esx.js'

let ESX: Client = null

setImmediate (() => {
  emit('esx:getSharedObject', (obj: Client) => (ESX = obj));
})

Server

import { Server } from 'esx.js'

let ESX: Server = null

emit('esx:getSharedObject', (obj: Server) => (ESX = obj));

You can also import a single type:

import { XPlayer } from 'esx.js/@types/server'

const Player: XPlayer

That's it. Now you are ready to rock the world!

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago