Skip to content

Commit

Permalink
Fix Bug: Cannot pickup weed plant
Browse files Browse the repository at this point in the history
cannot pickup weed plant 
because distance from player coords and weedplant object 
the distance is too small 
should be 1.5 not 1.0
  • Loading branch information
NRTnarathip authored Feb 17, 2022
1 parent e46ae32 commit ee8f995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion [esx_addons]/esx_drugs/client/weed.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee8f995

Please sign in to comment.