mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
* feat(interface/input): useFormat field * feat(interface/input): useFormat field * feat(types/dialog): useFormat field * feat(components/date): format date conversion * tweak(components/date): forgot other data type * chore(interface/input): more descriptive name * chore(interface/input): more descriptive name * chore(types/dialog): more descriptive name * tweak(components/date): reset things * feat(dialog/input): date conversion with returnString * refactor(web/input): remove unnecessary state --------- Co-authored-by: Luke <39926192+LukeWasTakenn@users.noreply.github.com>
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';