diverse fixes und improvments
This commit is contained in:
@@ -588,8 +588,8 @@ namespace ReallifeGamemode.Server.Events
|
||||
dbcontext.SaveChanges();
|
||||
}
|
||||
|
||||
//Rentcar Points
|
||||
if (nearestRentcarPoint != null)
|
||||
//Rentcar Points
|
||||
if (nearestRentcarPoint != null)
|
||||
{
|
||||
if (player.IsInVehicle)
|
||||
{
|
||||
@@ -861,6 +861,8 @@ namespace ReallifeGamemode.Server.Events
|
||||
int itemIdToGive = currentModel == 3 ? cannabisItem.Id : cannabisSeedsItem.Id;
|
||||
int amountToGive = currentModel == 3 ? new Random().Next(4, 10) + 1 : 1;
|
||||
|
||||
player.SendNotification($"Du hast {(currentModel == 3 ? "das Cannabis" : "die Samen")} in den Riot geladen");
|
||||
|
||||
InventoryManager.AddItemToVehicleInventory(riotVehicle, itemIdToGive, amountToGive);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user