Skip to content

Commit

Permalink
fix(client/context): Ensure is ordered correctly
Browse files Browse the repository at this point in the history
Previously the menu items would be randomly ordered, now they are the order you wrote them to be in.
  • Loading branch information
LukeWasTakenn committed Apr 16, 2022
1 parent 66694c4 commit caa0b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resource/interface/client/context.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ function lib.showContext(id)
local data = contextMenus[id]
openContextMenu = id
SetNuiFocus(true, true)
SendNUIMessage({
SendNuiMessage(json.encode({
action = 'showContext',
data = {
title = data.title,
menu = data.menu,
options = data.options
}
})
}, {sort_keys=true}))
end

function lib.registerContext(context)
Expand Down

0 comments on commit caa0b82

Please sign in to comment.