From 6b54c19e9c210391f41a4f6920530f6ea2f79fbd Mon Sep 17 00:00:00 2001 From: MoskalykA <100430077+MoskalykA@users.noreply.github.com> Date: Tue, 27 Jun 2023 23:54:37 +0200 Subject: [PATCH] refactor(esx_context): correction of lint errors --- [core]/esx_context/main.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/[core]/esx_context/main.lua b/[core]/esx_context/main.lua index a71ea8f8..351f3174 100644 --- a/[core]/esx_context/main.lua +++ b/[core]/esx_context/main.lua @@ -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