From ee8f995b3e0e1c694ade861a1cc97e81efd03937 Mon Sep 17 00:00:00 2001 From: NRTnarathip <61742272+NRTnarathip@users.noreply.github.com> Date: Thu, 17 Feb 2022 22:34:31 +0700 Subject: [PATCH] Fix Bug: Cannot pickup weed plant cannot pickup weed plant because distance from player coords and weedplant object the distance is too small should be 1.5 not 1.0 --- [esx_addons]/esx_drugs/client/weed.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/[esx_addons]/esx_drugs/client/weed.lua b/[esx_addons]/esx_drugs/client/weed.lua index f52fe347..b31f9685 100644 --- a/[esx_addons]/esx_drugs/client/weed.lua +++ b/[esx_addons]/esx_drugs/client/weed.lua @@ -80,7 +80,7 @@ CreateThread(function() local nearbyObject, nearbyID for i=1, #weedPlants, 1 do - if #(coords - GetEntityCoords(weedPlants[i])) < 1 then + if #(coords - GetEntityCoords(weedPlants[i])) < 1.5 then nearbyObject, nearbyID = weedPlants[i], i end end