From 6e9964a8e20d2669b280161b93bf2f3cba1bf145 Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Sun, 30 Dec 2018 20:59:56 +0100 Subject: [PATCH] Check IsControlJustReleased() every frame --- client/main.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/main.lua b/client/main.lua index cf17b6e9..95df9283 100644 --- a/client/main.lua +++ b/client/main.lua @@ -175,7 +175,7 @@ Citizen.CreateThread(function() while true do Citizen.Wait(1) - local coords = GetEntityCoords(GetPlayerPed(-1)) + local coords = GetEntityCoords(PlayerPedId()) for k,v in pairs(Config.Zones) do if(v.Type ~= -1 and GetDistanceBetweenCoords(coords, v.Pos.x, v.Pos.y, v.Pos.z, true) < Config.DrawDistance) then @@ -188,9 +188,9 @@ end) -- Enter / Exit marker events Citizen.CreateThread(function() while true do - Citizen.Wait(10) + Citizen.Wait(100) - local coords = GetEntityCoords(GetPlayerPed(-1)) + local coords = GetEntityCoords(PlayerPedId()) local isInMarker = false local currentZone = nil @@ -217,7 +217,7 @@ end) -- Key controls Citizen.CreateThread(function() while true do - Citizen.Wait(10) + Citizen.Wait(0) if CurrentAction ~= nil then ESX.ShowHelpNotification(CurrentActionMsg)