From 92c5b103438138f6fb0066ae41ffcd54c868f9a1 Mon Sep 17 00:00:00 2001 From: Tinky <48660658+Tinky124@users.noreply.github.com> Date: Tue, 19 Nov 2019 20:46:01 +0100 Subject: [PATCH] Removed local keys --- client/main.lua | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/client/main.lua b/client/main.lua index a9101d0f..af8971f3 100644 --- a/client/main.lua +++ b/client/main.lua @@ -1,11 +1,4 @@ -local Keys = { - ["ESC"] = 322, ["BACKSPACE"] = 177, ["E"] = 38, ["ENTER"] = 18, ["LEFT"] = 174, ["RIGHT"] = 175, ["TOP"] = 27, ["DOWN"] = 173 -} - -local menuIsShowed = false -local hasAlreadyEnteredMarker = false -local isInMarker = false - +local menuIsShowed, hasAlreadyEnteredMarker, isInMarker = false, false, false ESX = nil Citizen.CreateThread(function() @@ -99,7 +92,7 @@ Citizen.CreateThread(function() while true do Citizen.Wait(0) - if IsControlJustReleased(0, Keys['E']) and isInMarker and not menuIsShowed then + if IsControlJustReleased(0, 38) and isInMarker and not menuIsShowed then ESX.UI.Menu.CloseAll() ShowJobListingMenu() end