mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +01:00
fix(client/interface): allow reregistering list menus
This commit is contained in:
@@ -3,7 +3,7 @@ local openMenu = nil
|
|||||||
|
|
||||||
function lib.registerMenu(data, cb)
|
function lib.registerMenu(data, cb)
|
||||||
data.cb = cb
|
data.cb = cb
|
||||||
if not registeredMenus[data.id] then registeredMenus[data.id] = data end
|
registeredMenus[data.id] = data
|
||||||
end
|
end
|
||||||
|
|
||||||
function lib.showMenu(id)
|
function lib.showMenu(id)
|
||||||
|
|||||||
Reference in New Issue
Block a user