From b50a94bf2403c359a28cdbb69edb6edacc212f47 Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Sun, 30 Dec 2018 21:32:38 +0100 Subject: [PATCH] Check IsControlJustReleased() every frame --- client/main.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/main.lua b/client/main.lua index 782ec737..639f6369 100644 --- a/client/main.lua +++ b/client/main.lua @@ -381,7 +381,7 @@ end) -- Activate menu when player is inside marker Citizen.CreateThread(function() while true do - Citizen.Wait(10) + Citizen.Wait(0) local playerPed = PlayerPedId() if IsPedInAnyVehicle(playerPed, false) then local coords = GetEntityCoords(PlayerPedId()) @@ -393,7 +393,6 @@ Citizen.CreateThread(function() if GetDistanceBetweenCoords(coords, v.Pos.x, v.Pos.y, v.Pos.z, true) < v.Size.x then isInLSMarker = true ESX.ShowHelpNotification(v.Hint) - break else isInLSMarker = false