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
282 stars 378 forks source link

[Bug] canClose = false don't seems to work #599

Closed NexDK closed 2 weeks ago

NexDK commented 2 weeks ago

Describe the bug canClose = false don't seems to work

Expected behavior that the menu can't be closed when you have canClose = false

Additional context

lib.registerContext({
        id = 'menu-1',
        title = 'Select Spawn',
        options = {
            {
                title = 'Disabled button',
                description = 'This button is disabled',
                icon = 'hand',
                canClose = false
            }
        }
    })
    lib.showContext('menu-1')