Skip to content

Commit

Permalink
fix(client): prevent duplicate 'go back' options on nested menus
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed May 17, 2024
1 parent 472e1cc commit 524b572
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,8 @@ RegisterNUICallback('select', function(data, cb)

menuChanged = true
currentMenu = option.openMenu ~= 'home' and option.openMenu or nil

options:wipe()
else
state.setNuiFocus(false)
end
Expand Down

0 comments on commit 524b572

Please sign in to comment.