diff --git a/ReallifeGamemode.Server/Events/Key.cs b/ReallifeGamemode.Server/Events/Key.cs index ed4c8d17..cf94f60c 100644 --- a/ReallifeGamemode.Server/Events/Key.cs +++ b/ReallifeGamemode.Server/Events/Key.cs @@ -826,6 +826,10 @@ namespace ReallifeGamemode.Server.Events int itemIdToGive = currentModel == 3 ? cannabisItem.Id : cannabisSeedsItem.Id; int amountToGive = currentModel == 3 ? new Random().Next(4, 10) + 1 : 1; + IItem itemToGive = currentModel == 3 ? (IItem)cannabisItem : cannabisSeedsItem; + + logger.LogInformation("Cop {0} put the item {1} ({2}, amount: {3}) in the riot", player.Name, itemToGive.Name, itemToGive.Id, amountToGive); + player.SendNotification($"Du hast {(currentModel == 3 ? "das Cannabis" : "die Samen")} in den Riot geladen"); InventoryManager.AddItemToVehicleInventory(riotVehicle, itemIdToGive, amountToGive);