From d214b902e5ab21150a1484b0c8576dfbd312317b Mon Sep 17 00:00:00 2001 From: Tony Stark <76168122+tony-stark-17@users.noreply.github.com> Date: Wed, 28 Dec 2022 11:18:50 +0530 Subject: [PATCH] fix: Backwards compatibility for closing context menu --- [esx]/esx_context/main.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/[esx]/esx_context/main.lua b/[esx]/esx_context/main.lua index 8a2769c9..0a0567d7 100644 --- a/[esx]/esx_context/main.lua +++ b/[esx]/esx_context/main.lua @@ -13,6 +13,9 @@ function Post(fn,...) end function Open(position,eles,onSelect,onClose,canClose) + if canClose == nil then + canClose = true + end activeMenu = { position = position, eles = eles,