From 1aa38a813691c0031f2ed95f8446a86d92fd8d23 Mon Sep 17 00:00:00 2001 From: Zavaar Shah <35277113+ThatZiv@users.noreply.github.com> Date: Fri, 26 Oct 2018 19:50:21 -0400 Subject: [PATCH] Fixed "stuttering issue" --- client.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client.lua b/client.lua index c4315de..9fa2be5 100644 --- a/client.lua +++ b/client.lua @@ -3,12 +3,13 @@ local nui = false Citizen.CreateThread(function() - + --[[ If you want to change the key, go to https://docs.fivem.net/game-references/controls/ and change the '20' value below]] + key = 10 -- Change this to your key value nui = false while true do Citizen.Wait(1) ---[[ If you want to change the key, go to https://docs.fivem.net/game-references/controls/ and change the '20' value below]] - if IsControlPressed(0, 20)--[[ 'Z' Key ]] then + + if IsControlPressed(0, key) then if not nui then local players = {} ptable = GetPlayers() @@ -24,7 +25,7 @@ Citizen.CreateThread(function() nui = true while nui do Wait(0) - if(IsControlPressed(0, 48) == false) then + if(IsControlPressed(0, key) == false) then nui = false SendNUIMessage({ meta = 'close'