Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@overextended/ox_lib

overextended780LGPL-3.0deprecated3.30.6TypeScript support: included

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

JS/TS wrapper for ox_lib exports

fivem, ox_lib, ox, overextended

readme

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.

You still need to use and have the ox_lib resource included into the resource you are using the npm package in.

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