From c42a6824c70eb4fe17d7230c00f058d3b27fa5e9 Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Sun, 30 Dec 2018 21:52:30 +0100 Subject: [PATCH] Check IsControlJustReleased() every frame --- client/main.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/main.lua b/client/main.lua index aa0ff237..828521f7 100644 --- a/client/main.lua +++ b/client/main.lua @@ -202,7 +202,8 @@ end) Citizen.CreateThread(function() while true do - Citizen.Wait(10) + Citizen.Wait(200) + local coords = GetEntityCoords(PlayerPedId()) local isInMarker = false local currentZone = nil @@ -232,7 +233,7 @@ end) -- Key controls Citizen.CreateThread(function() while true do - Citizen.Wait(10) + Citizen.Wait(0) if CurrentAction ~= nil then ESX.ShowHelpNotification(CurrentActionMsg)