shopvehicle-preise lassen sich über svbp ändern, textlabel werden aber nicht aktualisiert
This commit is contained in:
@@ -3914,7 +3914,7 @@ namespace ReallifeGamemode.Server.Commands
|
||||
|
||||
if (!player.IsInVehicle)
|
||||
{
|
||||
ChatService.ErrorMessage(player, "Du sitzt nicht in einem Fahrzeug");
|
||||
ChatService.ErrorMessage(player, "Du sitzt in keinem Fahrzeug");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -3939,6 +3939,11 @@ namespace ReallifeGamemode.Server.Commands
|
||||
oldPrice = factionVehicle.BuyPrice;
|
||||
factionVehicle.BuyPrice = price;
|
||||
}
|
||||
else if (serverVehicle is ShopVehicle shopVehicle)
|
||||
{
|
||||
oldPrice = shopVehicle.Price;
|
||||
shopVehicle.Price = price;
|
||||
}
|
||||
else
|
||||
{
|
||||
ChatService.ErrorMessage(player, "Dieses Fahrzeug ist weder ein User- noch ein Fraktionsfahrzeug");
|
||||
|
||||
Reference in New Issue
Block a user