diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index 141e9fd8..3cac2992 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -1307,6 +1307,16 @@ namespace ReallifeGamemode.Server.Commands Vehicle playerVeh = player.Vehicle; playerVeh.Livery = livery; + + using (var dbContext = new DatabaseContext()) + { + ServerVehicle serverVeh = VehicleManager.GetServerVehicleFromVehicle(playerVeh, dbContext); + if (serverVeh != null) + { + serverVeh.Livery = livery; + dbContext.SaveChanges(); + } + } } [Command("vcolor", "~m~Benutzung: ~s~/vcolor [Farb-ID1] [Farb-ID2]")]