From 414578d61b2b4a1375c832fd30d9cb42ee51531a Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Mon, 11 Sep 2023 17:52:10 +0200 Subject: [PATCH] fix: fixed lint error --- server-data/resources/[esx]/esx_context/main.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server-data/resources/[esx]/esx_context/main.lua b/server-data/resources/[esx]/esx_context/main.lua index 9826ebb00..591ea7724 100644 --- a/server-data/resources/[esx]/esx_context/main.lua +++ b/server-data/resources/[esx]/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