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)
|
if (!player.IsInVehicle)
|
||||||
{
|
{
|
||||||
ChatService.ErrorMessage(player, "Du sitzt nicht in einem Fahrzeug");
|
ChatService.ErrorMessage(player, "Du sitzt in keinem Fahrzeug");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3939,6 +3939,11 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
oldPrice = factionVehicle.BuyPrice;
|
oldPrice = factionVehicle.BuyPrice;
|
||||||
factionVehicle.BuyPrice = price;
|
factionVehicle.BuyPrice = price;
|
||||||
}
|
}
|
||||||
|
else if (serverVehicle is ShopVehicle shopVehicle)
|
||||||
|
{
|
||||||
|
oldPrice = shopVehicle.Price;
|
||||||
|
shopVehicle.Price = price;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ChatService.ErrorMessage(player, "Dieses Fahrzeug ist weder ein User- noch ein Fraktionsfahrzeug");
|
ChatService.ErrorMessage(player, "Dieses Fahrzeug ist weder ein User- noch ein Fraktionsfahrzeug");
|
||||||
|
|||||||
Reference in New Issue
Block a user