overextended / ox_lib

A FiveM resource and script library for Lua and JS.
https://overextended.dev/ox_lib
GNU Lesser General Public License v3.0
318 stars 423 forks source link

[Suggestion] Let’s make lib.input dynamic. #628

Open newbialywhodis opened 3 months ago

newbialywhodis commented 3 months ago

Is your feature request related to a problem? Please describe.

Using the input menu for a long time, I noticed its potential right from the start. If the values were sent and received dynamically, we would have a great option for enhancing scripts. For example:

Describe the solution you'd like option in Input menu: dynamic:? boolean

LukeWasTakenn commented 3 months ago

Input dialog isn't meant to be a dynamic input menu, it was always envisioned as a static form where you can do whatever you want with the values after submitting

newbialywhodis commented 3 months ago

Input dialog isn't meant to be a dynamic input menu, it was always envisioned as a static form where you can do whatever you want with the values after submitting

I believe that making it semi-dynamic unlocks it’s hidden potential. At this moment, only ui part of lib we can use dynamic is Menu, or radial menu. I doesn’t count context as it’s required to reregister it. But yes, if input shouldn’t really be partially dynamic, then i suggest of adding new lib ui part which would work like connection of Lib.menu and lib.input :D