LightLib (LLib) is a lightweight menu library for RedM. It allows you to create interactive menus with sub-menu management, buttons with descriptions, sliders, right labels, opacity controls, checkboxes and filters.
- Sub-menus: Create nested menus for easy and smooth navigation.
- Buttons with descriptions: Add detailed descriptions to your buttons.
- Sliders: Use sliders to select values.
- RightLabel: Display labels to the right of buttons.
- Opacity: Control the opacity of menu elements.
- Checkbox: Add checkboxes for boolean options.
- Filters: Add a filter by pressing F to find a button faster
The menu code
is inspired by PMenu, while the usage is a mix of PMenu and RageUI.
To see an example of a menu created with LightLib, check out the example.lua file.
To use LightLib in your RedM project, simply add the lightlib.lua
file and your lua file containing the menu
to your resource and configure the fxmanifest.lua like this one