Skip to content

Subj3ct/ox_lib_redesign

 
 

Repository files navigation

ox_lib

A FiveM library and resource implementing reusable modules, methods, and UI elements.

For guidelines to contributing to the project, and to see our Contributor License Agreement, see CONTRIBUTING.md

For additional legal notices, refer to NOTICE.md.

📚 Documentation

https://coxdocs.dev/ox_lib

💾 Download

https://github.com/communityox/ox_lib/releases/latest/download/ox_lib.zip

📦 npm package

https://www.npmjs.com/package/@communityox/ox_lib

🖥️ Lua Language Server

  • Install Lua Language Server to ease development with annotations, type checking, diagnostics, and more.
  • Install CfxLua IntelliSense to add natives and cfxlua runtime declarations to LLS.
    • You can load ox_lib into your global development environment by modifying workspace/user settings "Lua.workspace.library" with the resource path.
      • e.g. "c:/fxserver/resources/ox_lib"

Custom Options

  • Use the setr ox:darkMode convar to enable/disable dark mode by default (1 for dark mode, 0 for light)
  • Change the default progress bar icon(clock by default) by setting icon = 'icon' when you define your progres bars.
  • Switch between dark/light mode in-game via the /ox_lib command.
  • Enable/disable opening/closing animations via the /ox_lib command as well.

About

A FiveM resource and script library for Lua and JS.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 55.6%
  • Lua 42.7%
  • CSS 1.5%
  • Other 0.2%