mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 11:01:25 +00:00
refactor(esx_context): correction of lint errors
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
local defaultPosition = "right" -- [ left | center | right ]
|
||||
local activeMenu
|
||||
local Debug = ESX.GetConfig().EnableDebug
|
||||
|
||||
@@ -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
|
||||
@@ -211,7 +210,7 @@ if Debug then
|
||||
exports["esx_context"]:Close()
|
||||
end
|
||||
|
||||
local function onClose(menu)
|
||||
local function onClose()
|
||||
print("Menu closed.")
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user