0.1.17 • Published 1 year ago

fivem-esx-js v0.1.17

Weekly downloads
85
License
MIT
Repository
github
Last release
1 year ago

fivem-esx-js

HitCount contributions welcome

https://nodei.co/npm/fivem-esx-js.png?downloads=true&downloadRank=true&stars=true

Javascript/Typescript wrapper for the FiveM ESX Framework natives.

Features based on the ESX framework for FiveM. This module will allow you to fully exploit ESX from your JavaScript/TypeScript developments.

Features

In other words, whatever the FiveM ESX Lua Framework wrapper can do, this package can as well.

Note: Not all features are currently available. They will be added as development continues as well as additional language specific features.

Usage

Typescript

Client side

Create a file "esx.ts" containing:

import {ESXClient} from "fivem-esx-js/client/esx_client";

export let ESX: ESXClient;
emit('esx:getSharedObject', (obj) => {
    ESX = obj;
});

ESX is now available! example on "test.ts":

import {ESX} from "../esx";
ESX.ShowNotification('Hello World !');

Server side

Create a file "esx.ts" containing:

import {ESXServer} from "fivem-esx-js/server/esx_server";

export let ESX: ESXServer;
emit('esx:getSharedObject', (obj) => {
    ESX = obj;
});

ESX is now available! example on "test.ts":

import {ESX} from "../esx";
let player = ESX.GetPlayerFromId(1);
player.addBank(10000);

Javascript

TODO

Contributing

You are more than welcome to contribute to this project by submitting a pull request and creating issues.

contributions welcome

0.1.17

1 year ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago