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.
https://github.com/communityox/ox_lib/releases/latest/download/ox_lib.zip
https://www.npmjs.com/package/@communityox/ox_lib
- 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"
- You can load ox_lib into your global development environment by modifying workspace/user settings "Lua.workspace.library" with the resource path.
- Use the
setr ox:darkModeconvar 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_libcommand. - Enable/disable opening/closing animations via the
/ox_libcommand as well.