Files
ox_lib/package
Diogo Manuel Coelho Morais dos Santos e91be47067 feat(streaming): requestWeaponAsset (#264)
2023-04-17 14:21:40 +10:00
..
2023-02-19 22:40:31 +01:00
2023-02-19 22:40:31 +01:00
2022-09-18 12:37:03 +02:00

ox_lib JS/TS wrapper

Not all ox_lib functions found in Lua are supported, the ones that are will have a JS/TS example on the documentation.

Currently, all the available functions for JS/TS can be found under the resource folder in
ox_lib.

Installation

# With pnpm
pnpm add @overextended/ox_lib

# With Yarn
yarn add @overextended/ox_lib

# With npm
npm install @overextended/ox_lib

Usage

You can either import the lib from client or server files or deconstruct the object and import only certain functions you may require.

import lib from '@overextended/ox_lib/client'
import lib from '@overextended/ox_lib/server'
import { checkDependency } from '@overextended/ox_lib/shared';

Documentation

View documentation