From 110446860bccd5083da34ce2f9269845ea56ed43 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Mon, 14 Feb 2022 13:13:34 +1100 Subject: [PATCH] fix: increase distance checks for drugs and holdup --- [esx_addons]/esx_drugs/client/main.lua | 2 +- [esx_addons]/esx_holdup/client/main.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[esx_addons]/esx_drugs/client/main.lua b/[esx_addons]/esx_drugs/client/main.lua index 678c6b76..effb1a4e 100644 --- a/[esx_addons]/esx_drugs/client/main.lua +++ b/[esx_addons]/esx_drugs/client/main.lua @@ -7,7 +7,7 @@ CreateThread(function() local playerPed = PlayerPedId() local coords = GetEntityCoords(playerPed) - if #(coords - Config.CircleZones.DrugDealer.coords) < 0.5 then + if #(coords - Config.CircleZones.DrugDealer.coords) < 2.0 then if not menuOpen then ESX.ShowHelpNotification(_U('dealer_prompt')) diff --git a/[esx_addons]/esx_holdup/client/main.lua b/[esx_addons]/esx_holdup/client/main.lua index f83c2674..25b68c6d 100644 --- a/[esx_addons]/esx_holdup/client/main.lua +++ b/[esx_addons]/esx_holdup/client/main.lua @@ -88,7 +88,7 @@ CreateThread(function() if not holdingUp then letSleep = false DrawMarker(Config.Marker.Type, v.position, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Config.Marker.x, Config.Marker.y, Config.Marker.z, Config.Marker.r, Config.Marker.g, Config.Marker.b, Config.Marker.a, false, false, 2, false, false, false, false) - if distance < 0.5 then + if distance < 2.0 then ESX.ShowHelpNotification(_U('press_to_rob', v.nameOfStore)) if IsControlJustReleased(0, 38) then if IsPedArmed(PlayerPedId(), 4) then