Skip to content

Commit

Permalink
fix: fixed lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Sep 11, 2023
1 parent f50086d commit 414578d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server-data/resources/[esx]/esx_context/main.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
local defaultPosition = "right" -- [ left | center | right ]
local activeMenu
local Debug = ESX.GetConfig().EnableDebug

Expand Down Expand Up @@ -76,7 +75,7 @@ end)
-- NUI Callbacks
-- [ closed | selected | changed ]

RegisterNUICallback("closed",function(data,cb)
RegisterNUICallback("closed",function(_, cb)
if not activeMenu or (activeMenu and not activeMenu.canClose) then
return cb(false)
end
Expand Down Expand Up @@ -211,7 +210,7 @@ if Debug then
exports["esx_context"]:Close()
end

local function onClose(menu)
local function onClose()
print("Menu closed.")
end

Expand Down

0 comments on commit 414578d

Please sign in to comment.