mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +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 activeMenu
|
||||||
local Debug = ESX.GetConfig().EnableDebug
|
local Debug = ESX.GetConfig().EnableDebug
|
||||||
|
|
||||||
@@ -76,7 +75,7 @@ end)
|
|||||||
-- NUI Callbacks
|
-- NUI Callbacks
|
||||||
-- [ closed | selected | changed ]
|
-- [ closed | selected | changed ]
|
||||||
|
|
||||||
RegisterNUICallback("closed",function(data,cb)
|
RegisterNUICallback("closed",function(_,cb)
|
||||||
if not activeMenu or (activeMenu and not activeMenu.canClose) then
|
if not activeMenu or (activeMenu and not activeMenu.canClose) then
|
||||||
return cb(false)
|
return cb(false)
|
||||||
end
|
end
|
||||||
@@ -211,7 +210,7 @@ if Debug then
|
|||||||
exports["esx_context"]:Close()
|
exports["esx_context"]:Close()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function onClose(menu)
|
local function onClose()
|
||||||
print("Menu closed.")
|
print("Menu closed.")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user