private void createnewmod(IPlayer player, string MName, int MType, int MID) { try { if (player == null || !player.Exists) { return; } if (player.IsInVehicle) { if (player.Vehicle == null || !player.Vehicle.Exists) { return; } uint vehHash = player.Vehicle.Model; bool success = ServerVehicles.AddVehicleMods(vehHash, MName, MType, MID); if (success) { HUDHandler.SendNotification(player, 2, 2500, $"Mod gespeichert: {vehHash} - {MName} - {MType} - {MID}"); Alt.Log($"Mod erfolgreich gespeichert"); } else { HUDHandler.SendNotification(player, 4, 2500, $"Mod konnte nicht gespeichert werden (existiert er schon?): {vehHash} - {MName} - {MType} - {MID}"); Alt.Log($"FEHLER: MOD NICHT GESPEICHERT {MType} - {MID} - {MName}"); } } } catch (Exception e) { Alt.Log($"{e}"); } }