C#:
namespace Oxide.Plugins
{
[Info("FixLootingBug", "OxideBro / RustPlugin.ru", "0.0.1")]
class FixLootingBug : RustPlugin
{
void OnLootEntity(BasePlayer player, BaseEntity entity)
{
if (player == null || entity == null || player.GetMountedVehicle() == null) return;
if (player.GetMountedVehicle() == entity) return;
if (entity.GetParentEntity() != null && player.GetMountedVehicle() == entity.GetParentEntity()) return;
NextTick(() => player.EndLooting());
}
}
}