From 1a0ce58eceb23ecbe47d802ae406dd9667b690c6 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Mon, 24 May 2021 03:16:52 +1000 Subject: [PATCH] fix(client): Enable more control actions for people using modified ESX menu --- client/main.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/client/main.lua b/client/main.lua index 2d796abd..728ce071 100644 --- a/client/main.lua +++ b/client/main.lua @@ -36,14 +36,13 @@ if ESX.GetConfig().Multichar then StartLoop = function() hidePlayers = true Citizen.CreateThread(function() + local keys = {18, 27, 172, 173, 176, 177, 187, 188, 191, 201} while hidePlayers do DisableAllControlActions(0) - EnableControlAction(0, 173, true) - EnableControlAction(0, 177, true) - EnableControlAction(0, 18, true) - EnableControlAction(0, 27, true) - EnableControlAction(0, 200, true) - Citizen.Wait(5) + for i=1, #keys do + EnableControlAction(0, keys[i], true) + end + Citizen.Wait(3) end end) Citizen.CreateThread(function()