@mkpwnz/esx-legacy-ts
v0.2.17
Published
Typescript wrapper for the FiveM ESX core natives
Downloads
4
Readme
Usage
Client side
Create a file "esx.ts" containing:
import { ESXClient } from '@mkpwnz/esx-legacy-ts/client/esx_client'
export let ESX: ESXClient = exports["es_extended"]:getSharedObject()
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 '@mkpwnz/esx-legacy-ts/server/esx_server'
export let ESX: ESXServer = exports["es_extended"]:getSharedObject()
ESX is now available! example on "test.ts":
import { ESX } from '../esx';
let player = ESX.GetPlayerFromId(1);
player.addBank(10000);