Menu builder for JS and rendered in NUI [LMenu]

Hello,
A lot of different menu builder exist to make menu in LUA, most of them use GTAV native to render the menu.
This project is really different on all of these aspect,
This menu builder is made for be used is JS, an LUA version will maybe exist a day, in fact there is no much work to adapt it in lua since it’s using html/css/js to render the menu, there is only a few line in JS interpreted by fivem directly.
The project is only on his beginning, i still have a lot of work to do to make it really usefull and easy to use.

github : https://github.com/LH-Lawliet/LMenu

exemple video: https://streamable.com/41ragy

Sorry for my bad english,
LH_Lawliet

7 Likes

Very very clean ! Looking forward to use this, i will probably make an Lua version, i’m more familiar with it :slight_smile:

Looks great, interesting take on a menu builder!

1 Like

Thanks, yeah an lua version is really easy to do, you just gonna have to adapt the link part, take a look at the link.js file (https://github.com/LH-Lawliet/LMenu/blob/main/link.js). For the moment this file is almost empty because there is still a lot of work to do like be able to use multiple menu at the same time

1 Like

New commit, (https://github.com/LH-Lawliet/LMenu/commit/3194e422b84421777f95afd91618fca5326595e8)
Now it’s possible to have multiple menu saved at the same time,
=> you now have 2 function instead of one to open a menu, createMenu(data) will create it but not show it and openMenu(menuId) will open it

The state of the menu is saved (current button, slider pos…)
Some new function will appear, if you have any suggestion i will probably made them

This resource is a resource for the dev, there is still a lot of work to assimilate it like a real lib. The usage of it will probably change again, I don’t wanna be freezed in wrong choice

New update,
Some code cleanup,
New button type (colors), this is a button where you can select a color (https://streamable.com/zbfkk8)
Check the readme to understand how to use it
Futurs update : Code cleanup + new buttons + maybe a doc