I’ve resolved the problem by getting again the nearest plant of the player (the player is freezed by an animation so he can’t move and the plant will be the same).

local plant = GetClosestObjectOfType(plyPos.x, plyPos.y, plyPos.z, 1.0, GetHashKey("prop_weed_01"), false)
  
  SetEntityAsMissionEntity(plant, true, true)
  DeleteObject(plant)
  SetEntityAsNoLongerNeeded(plant)