mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user